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

Approval fails to run when there are multiple approvers

Hello, I wonder if someone can help me. 

 

I'm trying to create an approval flow (first to respond). There will be multiple approvers. The name of the approvers are stored on a SharePoint list. 

 

When the flow runs, it will look up the name of the approvers based on the site they selected. 

 

JoeChanUK_0-1646068811236.png

 

This variable varApprovalEmail may contain one or more email addresses. The idea is that these email addresses will go into "assigned to" when starting the approval. 

 

What I have noticed is that if there is only one email address during the above flow process, then the flow will complete successfully with the approval request sent. However, if there are more than one addresses, the flow fails, saying 

 

BadRequest. The request failed. Error code: 'InvalidApprovalCreateRequestAssignedToNoValidUsers'. Error Message: 'Required field 'assignedTo' contained no valid users in the organization'.

 

Using the log, I noticed the field varApproverEmail only has one email address. The rest aren't visible. I can see all the details under "lookup approval email address" part of the flow though. 

 

What have I done wrong? 

 

Thanks.  

1 REPLY 1
ScottShearer
Super User
Super User

@JoeChanUK 

I suspect the issue is that you need to add a semicolon after the email address in the Append to a string variable action.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (1,327)