Skip to main content
Dec 9, 2022 6:55 PM UTC
Question

Correct JSON Request Syntax for Sending an Email

This is related to this question: https://www.celopeers.com/s/question/0D50700001vMXJgCAO/distribution-lists-in-action-flows?language=en_US

 

I have been able to figure out how to send to a distribution list, but it is instead using an HTTP Request. This allows our action flow to reference a "no reply" account where we can send within the company.

 

The issue I'm now having is how to attach a PDF while using JSON. This is how my module is currently set up

 

image 

I have my PDF being converted to a JSON string as can be seen by '9. JSON string'.

 

Is there a parameter I'm missing in the JSON request? The email can be sent and works correctly, but without the necessary PDF attached

 

2 replies

Dec 9, 2022 7:48 PM UTC

Hi Matt,

 

Try encoding the same into BASE64 and sending the mail, also were you able to understand why you could not send the mail to the distribution list ?

 

Dec 19, 2022 5:45 PM UTC

The reason why was because the initial email wasn't granted permissions to the distribution list.