cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Getting users from a list filtered by Region and use those people in an approval

Hello,
Currently I have an approval workflow that gets approvers from a list.
The filter query uses Region as the key field and based on what I am seeing I am getting the users from NA as expected.

Chrislond58_0-1618402089117.png

Chrislond58_2-1618402539578.png

Here is the input and output.

Chrislond58_3-1618402972060.png

The filter query pulls two people but for some reason it is only sending an approval to one approver and that person is getting TWO approvals. One approval happens and he approves it, expecting that the other person from the region would get an approval but the first approver gets a second approval again.

Any help here would be appreciated.

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @Anonymous,

 

You should initialize an array variable, not a string variable, then use Append to array variable action to add accumulate these approver emails.

Then use join() function to convert the array variable to a string separated by ";", to make it could be used in the Approval action:

join(variables('Approvers'),';')

Screenshot 2021-04-15 140940.jpg

 

Screenshot 2021-04-15 141058.jpg

 

Best Regards,
Community Support Team _ Lin Tu
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
v-litu-msft
Community Support
Community Support

Hi @Anonymous,

 

You should initialize an array variable, not a string variable, then use Append to array variable action to add accumulate these approver emails.

Then use join() function to convert the array variable to a string separated by ";", to make it could be used in the Approval action:

join(variables('Approvers'),';')

Screenshot 2021-04-15 140940.jpg

 

Screenshot 2021-04-15 141058.jpg

 

Best Regards,
Community Support Team _ Lin Tu
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

Anonymous
Not applicable

This worked but I am getting duplicate approvals

Chrislond58_2-1618490898093.png

 

Teams "Activity" sent me the first approval and once I approved it I received a Teams notification "Final Status - Completed" then right after that I received another Teams notification for approval.

Chrislond58_5-1618491372833.png

 

The system sent an approval to both approvers as expected.
And I approved it as shown below.

Chrislond58_7-1618491913864.png

 

I then received this notification.

Chrislond58_6-1618491707179.png

Am I missing something in my configuration?
Thank  you for your help!

 

Anonymous
Not applicable

I believe I found the issue. 
There are two NA Approvers.
Not sure why or how a loop happened.

Chrislond58_0-1618499650618.png

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,326)