cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GR
Level: Powered On

Send email issues with concat expression

Hello everyone

 

I am trying to set up a flow that sends an email to various team members when an item is created.

I could make it work if I wanted to send only one email to several members, but I am having issues doing the same in a parallel flow. Set up can be found down below.

 

My issue now is the following:

 

In the first branch, I have the following concat to get the emails of the users: concat(item()['TeamMembers'],';')

In the second branch, I use the same expression, but with another array: concat(item()?'ContactPersons'],';')

 
Now when I run the flow, it works for the first branch, but does not for the second one. Here is the result:
While in the first branch, it took the correct emails, in the second one, it includes parts of the expression in it, which obviously results in an email send error (see how it includes the "ContactPersons" part).
 
What do you think it could be? 
 
Thanks a lot for your help! 🙂
 
Anmerkung 2019-08-22 151819.png

 

Anmerkung 2019-08-22 151201.png

 

Anmerkung 2019-08-22 151447.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Send email issues with concat expression

Hi @GR ,

 

Please check if the TeamMembers column and the ContactPersons column are with same type? What is the type of the ContactPersons column? Is it Person type?

 

If the ContactPersons column is a Person type column , please choose the ContactPersons Email dynamic content in the Select2.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
Dual Super User
Dual Super User

Re: Send email issues with concat expression

Hi @GR 

 

Compare the select expressions for both your branches

are you using the same dynamic context for the select action Map option

Community Support Team
Community Support Team

Re: Send email issues with concat expression

Hi @GR ,

 

Please check if the TeamMembers column and the ContactPersons column are with same type? What is the type of the ContactPersons column? Is it Person type?

 

If the ContactPersons column is a Person type column , please choose the ContactPersons Email dynamic content in the Select2.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

GR
Level: Powered On

Re: Send email issues with concat expression

Thanks a lot! Classic issue...even though I checked it multiple times.... 😉

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,579)