Set Dynamic Recipients of D365 Email in Power Automate
Introduction : We can send email using D365 Connectors in Power Automate. To know about how to send emails, refer my blog: https://www.cloudfronts.com/send-d365-email-using-power-automate/
In this scenario where, the activity parties (TO, From, CC) ae static, we can easily send emails. However here is how we can set the activity party dynamically on the Email.
Solution:
The create a record of Email message is as below, here we are entering the attributes of activity party, by clicking on “Switch to Input entire array”
You will get the Array format, the participationtypemask is TO, FROM,CC while the [email protected] is the email address.
Now all you need to do is create a dynamic array, You can use append to array variable action to create an array with participationtypemask as per your requirement,
pass this array as input to the Activity Parties field in create an email record.