How to send triggered emails from SFMC REST API?
My goal is to be able to send emails from SFMC based on certain SF field changes. E.g. Lead status changes from X to Y, lead gets a personalized email. So far I’ve set up a data extension and template, then a triggered email that references the data extension and email template.
What makes an email trigger in triggered sends?
The definition of what triggers the interaction to send the email is maintained outside of the application using API calls. The information created in the interface is used by the API when an email is triggered. Follow the list of step-by-step instruction in this article to create and send your first Triggered Email.
What’s the best way to call a REST API?
My goal is simply to call a REST API with the details of a new opportunity. Is the best way to do this via Apex or is there another approach. I am simply looking for some guidance to make sure I am not going down a long rabbit hole for something that can be done another way. Any advice is appreciated!
How to create a triggered send data extension?
The “Triggered Send” Data Extensions section lets you choose a Triggered Send Data Extension for use with this interaction, which will act as a SendLog, which means it will update with data from requests to trigger this email interaction. In this section, you can only use a data extension created using the TriggeredSendDataExtension template.
How to send email out of SFMC stack?
I hope I’m not over-complicating this, but it seems like a lot of work to send an email out of SFMC. My goal is to be able to send emails from SFMC based on certain SF field changes. E.g. Lead status changes from X to Y, lead gets a personalized email.
When to disable triggered sends in sfmarketing cloud?
Send Logging, if checked, logs the send in the SendLog data extension. The last checkbox, Disable API calls to this triggered send when an email build error threshold is reached, sets a threshold of errors before API calls are disabled and the sending process is stopped.
How to trigger triggered email in Salesforce cloud?
E.g. Lead status changes from X to Y, lead gets a personalized email. So far I’ve set up a data extension and template, then a triggered email that references the data extension and email template. Now I can hit this endpoint: https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/bd3d918e-c22e-e411-ad6f-38eaa791d321/send
How to do triggered sends in sfmarketing.cloud?
In the above script, replace ExternalKey with the external key of the interaction you created earlier and replace [email protected] with your email address. Now click on Schedule/Publish in the right upper corner. The script will only take a couple of seconds to execute and a status message will be displayed.