cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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
Community Support

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 II
Dual Super User II

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
Community Support

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

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

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (6,495)