Hi all,
I have a variable that collects email address information from an Excel file earlier in the Flow. I then use a union expression in a compose action to find distinct values in the collected array. I intend to use the output of the compose action and insert it in the "CC" line of the "Send an Email Notification". It looks like it's working well up until the last step.
Where am I going wrong in the address formatting? The deliver fails, firstly, but the email address is formatted strangely with extra information.
@Paulie78 Hi,
I'm having the same issue. I did as per you explained and got error. Can you suggest me any mistake form here?
Thanks
The email addresses are formatted correctly. The output of your compose action represents an array of values. To use them in a CC field they need to change from an array into a string. In your CC field, try the following expression:
join(outputs('Format_Distinct_Email_Addresses'), ';')
This expression will convert an array of values from:
[ "ms_hel@somedomain.com", "Paulie78@powerusers.microsoft.com" ]
To:
ms_hel@somedomain.com;Paulie78@powerusers.microsoft.com
The semicolon is the correct delimiter for an email to or cc field.
Please...
If I answered your question Accept it as a solution ✔️
If I helped you out, please give me some Kudos 👍
Thanks 😙
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional