cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Chrislond58
Helper II
Helper II

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 @Chrislond58,

 

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 @Chrislond58,

 

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

Chrislond58
Helper II
Helper II

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!

 

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (36,356)