I'm trying to collect data from an adaptive card to update a sharepoint list.
I had already managed to get the process to work and when I tried to do a test with multiple mails I came across a problem where the variables set in one of the loops are going to another loop creating issues (in who receives the card, which answers are stored etc.)
Is there any way to build variables inside an apply to each where it has an ID of the run or similar to maintain consistency in each loop even if it's running at the same time?
Solved! Go to Solution.
You can initialize a variable at the beginning of the flow and then set it within the Apply to each. That way you can still "build" variables within apply to each's.
Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for your reply Alex!
Indeed you can set it inside the apply to each, however if you do it in a concurrent "apply to each" you merge the lines and end up with variable and incorrect results (for exmple, the green stream "set variable" can overwrite the one from the yellow stream, which results in mixed data)
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.
Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.
The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.