In this blog post, we will explore how to send ClickDimensions emails via Microsoft flow. Because ClickDimensions is native to Dynamics: Customer Engagement, we can utilize the Common Data Service actions and triggers to send ClickDimensions Emails.
To start, ensure your flow is built within a solution! Some triggers and actions are only available within solutions – in our case we’ll be using the Relate Records action later on.
We’ll need to determine what triggers the sending of the email. In later blog posts we’ll explore this in more detail. Once you have determined how you want to trigger the sending of the email, we’ll create that email send record:
We’ll start by filling out some of the required fields on the record:
In this section, it’s important to make the Editor Type Value the same as the Email Template that you intend on using for these sends.
Finally we will need to include the GUID of the template we want to send:
Our next step is to create the relationship between the Contact and the Email send. To do this we will use the Relate Records CDS action. Note: The Relate Records action is only available for Flows built within a Solution!
Once the record is created, we’re going to associate the Contact (or Marketing List/Lead/Account) to the record. This uses the web API. If you’d like the technical explanation for this, you can find it here! If you need detailed information on how this action works, you can read my blog here!
The names of these relationships come directly from the Entity Relationships on the Email Send:
So now, once the Email Send is created, the Relate Record step will connect our Contact to our Email. Our final step is to now send the email. To do this, we will update the Email Send record:
Our main goal here is to set the record to Inactive and Scheduled:
Once that’s done, the ClickDimensions Execute Send will kick in and send your email! Many thanks to Matt Wittemann for his assistance with building this process!