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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (4,065)