SharePoint Asked by John John on January 2, 2021
I have the following MS Flow:-
and i have a SharePoint list with an Approvers field as follow:-
Currently i got this scenario:-
let say i create a new item >> set the Approvers fields to UserA & UserB.
then both users will get an approval request.
but when the first user Accept the request >> the status for the item will be changed to Resolved..
While what i am trying to achieve it to wrap all the users’ responses and then update the status, as follow:-
if all users Approve then the status will be set to Resolved
if all users Reject then the status will be set to Closed
if some users approve while the other reject, then the status will be set to "Partially Approved"..
so i do not want to update the status until all users provide their responses…
so can you help on how i need to modify my flow to implement the above?
Thanks
I think you can accomplish this with the following steps:
if(and(contains(variables('varApprovalStatus'), 'Approve'),contains(variables('varApprovalStatus'), 'Reject')), 'Partially Approved',if(and(contains(variables('varApprovalStatus'), 'Approve'),not(contains(variables('varApprovalStatus'), 'Reject'))), 'Approved','Closed'))
You can test the logic separately as shown in the screenshot below
Answered by Matiur Rahman on January 2, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP