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.
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 😙
Churchy
6
Chriddle
4
Super User 2025 Season 1
stampcoin
4