Skip to main content

i am using Salesforce API request and emailSimple . it seems that if i put a distribution list in the "emailAddresses": "myteam@mydomain.com", it does not actually send the email, still returns a 200. if i replace it with an individuals or shared mailbox email it works fine. is it possible that it doesnt work with a Distribution list email?

Hi ​@Jazzy3 

Post screenshots for us to have context about what you are referring to.


Looks like a secret government document hahahaha. not sure how the screenshot it going to help. it appears to me that the API doesn't like distribution groups, looking to confirm. when i replace the highlighted area with individuals or shared mailboxes it works fine. still shows a respond status of 200 (successful) but the email never gets delivered to the people in the distribution list. Thanks for responding.

 


@Jazzy3 

Perhaps try asking ChatGPT for help understanding what the issue is with how your API request is configured.

We would need to see how all of the fields are configured.

  • Method
  • URL
  • Body
  • Headers

 

If you need to hire help, there is a directory of Zapier Partners: https://zapier.com/partnerdirectory


Hey ​@Jazzy3 👋 Just wanted to check how you’re getting on, did you have any luck working with ChatGPT on this as Troy suggested?

I had a look at the Simple Email documentation and I’m inclined to agree that a group/distribution list type of salesforce email is not supported. Although it doesn’t expressly call it out in their API documentation they only describe the email address types of parameters as accepting comma-separated strings of email addresses with no mention of groups or distribution list emails specifically. Which may explain why it works when you included the individual emails but not when the Salesforce group/distribution list email is used. 🤔

Perhaps you’d need to have an additional Salesforce action to get all the individual email addresses associated with that distribution list email address first, then pass them across to the step to send out the email?


the Admin was only allowing that distribution email address to email internally. it has been fixed.


That’s great news, ​@Jazzy3! I’m so glad you were able to get it sorted so easily, and thanks for following up here to share what the solution was. I’ll get your reply marked as the best answer to help surface this info to others that might be running into the same issue.

Hope you have a great rest of your week! 😁