I'm creating a Flow where a want the approval data from 3-4 responders to update SharePoint LIST columns (e.g. Responder1name, Responder1email, Responder1comments; Responder2name, Responder2email, Responder2comments; etc.). I'm using the individual data responses later in the Flow (getting the data with Get Item action). I tried using multiple Filter Actions, but when I use them (filtering the Custom - Wait for all responses Approval), only one Filter action displays as an option in the Dynamic Content window. I want to use Update Item actions to fill in the columns, but don't have access to all the individual data. Any ideas on how to tackle this problem is appreciated.
Solved! Go to Solution.
Hi @Alex_CCI,
1. The expression is "item()", which means the current member of Approvers array variable.
2. Yes, you could use Create item, if you know the ID of the item, you could update them directly. If you don't know and want to filter out with Email, you could consider using Get items + filter query to do taht.
3.
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.
Clarification of the Issue
I'm creating a Flow where a want the approval data from 3-4 responders to update different columns in a SharePoint LIST (e.g. Responder1name, Responder1email, Responder1comments; Responder2name, Responder2email, Responder2comments; etc.). I'm using the individual responses (column data) later in the Flow (using the Get Item action). I tried using multiple Filter actions, but when I use them (filtering the Custom - Wait for all responses Approval), only one Filter action displays as an option in the Dynamic Content window. I want to use the Update Item actions to fill in the columns, but don't have access to all the individual data.
In addition, I have two groups of reviewers that are trading off reviewing requests as they come in (complete solution at An approval using two groups of alternating reviewers).
Solution
This solution uses two flows (one for group A and one for group B). I have the flow calculate Odd or Even requests (using the MS Form responseId field). Group A gets even request (MyNumber is equal to 0) and Group B gets odd request (MyNumber is NOT equal to 0). [BTW- I copied the A Group flow to make the B Group flow.] I use the Terminate action to stop the flow if the other group is reviewing.
mod(int(triggerOutputs()?['body/resourceData/responseId']), 2)
Then, in order to send out Approvals to all members at the same time, I use branching. Each approval is a Start and wait for an approval action and I select the Approve/Reject – First to respond action type. In my case, I am then capturing the Approver Name, Approval (Approve/Reject), and Approval Comments and update my SharePoint List using the Update Item action. Before the Flow moves on to the actions after the branching, it waits for all responses to be gathered.
Hi @Alex_CCI,
Since the Wait for all response approval action will end when all approvers respond, so update items in SharePoint list should wait for all responses done.
As a workaround, you could send an approval request to all users separately at the same time, then update items.
1. Initialize an array variable to store all approver emails;
2. loop these approvers, send an approval request one by one, to make sure the multiple approval request could be sent at the same time, turn on the Concurrency control;
3. create item.
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.
Hi, I appreciate the assistance. Three questions.
Hi @Alex_CCI,
1. The expression is "item()", which means the current member of Approvers array variable.
2. Yes, you could use Create item, if you know the ID of the item, you could update them directly. If you don't know and want to filter out with Email, you could consider using Get items + filter query to do taht.
3.
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.
Clarification of the Issue
I'm creating a Flow where a want the approval data from 3-4 responders to update different columns in a SharePoint LIST (e.g. Responder1name, Responder1email, Responder1comments; Responder2name, Responder2email, Responder2comments; etc.). I'm using the individual responses (column data) later in the Flow (using the Get Item action). I tried using multiple Filter actions, but when I use them (filtering the Custom - Wait for all responses Approval), only one Filter action displays as an option in the Dynamic Content window. I want to use the Update Item actions to fill in the columns, but don't have access to all the individual data.
In addition, I have two groups of reviewers that are trading off reviewing requests as they come in (complete solution at An approval using two groups of alternating reviewers).
Solution
This solution uses two flows (one for group A and one for group B). I have the flow calculate Odd or Even requests (using the MS Form responseId field). Group A gets even request (MyNumber is equal to 0) and Group B gets odd request (MyNumber is NOT equal to 0). [BTW- I copied the A Group flow to make the B Group flow.] I use the Terminate action to stop the flow if the other group is reviewing.
mod(int(triggerOutputs()?['body/resourceData/responseId']), 2)
Then, in order to send out Approvals to all members at the same time, I use branching. Each approval is a Start and wait for an approval action and I select the Approve/Reject – First to respond action type. In my case, I am then capturing the Approver Name, Approval (Approve/Reject), and Approval Comments and update my SharePoint List using the Update Item action. Before the Flow moves on to the actions after the branching, it waits for all responses to be gathered.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
85 | |
58 | |
44 | |
38 | |
34 |
User | Count |
---|---|
91 | |
74 | |
74 | |
61 | |
41 |