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

 Introduction:

When we trigger a flow on Email Activity or retrieve email activity. However that does not provide us the recipient details of the email. Recipient details are stored as part of Activity  Party. 

 

In this blog, we will understand how to retrieve the Email Recipients from the activity party of the email.

 

Solution:

From Email messages you will get activity party. Reterive Activity Parties of that ID.

Graphical user interface, text, application, email

Description automatically generated

Use Filter Array Action to get only the type of recipient you need.

Graphical user interface, application

Description automatically generated

If you do not know the Partition type mask, you can check the output of List rows and read the formatted value.

The Filter array output will you party type and party ID. In my case the party type was Users so I have used Party ID as input to get the User record.

Graphical user interface, text, application, email

Description automatically generated

 

Based on your party type and requirements, you can make use of the party id value which basically is your recipients 


Comments

Popular posts from this blog

The supplied reference link is invalid Error in Cloudflows

Set Dynamic Recipients of D365 Email in Power Automate