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.

Graphical user interface, application

Description automatically generated

 

 

 

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"

Graphical user interface, application

Description automatically generated

You will get the Array format, the participationtypemask is TO, FROM,CC while the partyid@data.bind is the email address.

Graphical user interface

Description automatically generated

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,

Graphical user interface, text, application

Description automatically generated

pass this array as input to the Activity Parties field in create an email record.

 

Graphical user interface, text, application, email

Description automatically generated


Comments

Popular posts from this blog

The supplied reference link is invalid Error in Cloudflows

Retrieve Email Recipients (TO, CC, BCC) in Cloud Flow