Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Concurrent loop and variables

(0) ShareShare
ReportReport
Posted on by 3

Hi,

 

I'm looping rows of a csv in flow and search (and if not found create) different type of records (Contacts & Accounts) in Dynamics365 based on the row data. After doing this, I create another type of record and would like to input the either found or created Contact & Account.

=> works nicely

 

I switched on degree of parallelism to 50 as this naturally speeds up the whole process a lot!

As a result I can't use variable anymore in the 'Apply to each' row action... I use compose as some kind of variable subsitution.

=> works nicely

 

My question is:

After searching or creating the account or contact records (=> nested ifs) I'd like to use the found or created record in just one "create action"... normally I'd just store the found or created record id in a variable <= which I can't use in concurrent loops. I can't use compose either, as this "kind of variable" in my case can't be set again after "initialization". Is there any other way of remembering the found/created records to be able to use them later in a concurrent loop?

 

Thx in advance for any suggestion!

  • AntonEm Profile Picture
    3 on at
    Re: Concurrent loop and variables

    Thank you for your answer. This confirms my supposition. If I have additional questions, I'll aks here - as I'm in the middle of reworking, no current need right now 🙂

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Concurrent loop and variables

     

    Hi @AntonEm ,

     

    As far as I know, the only actions that can be used to dump and transition data in Flow are Compose and Variables.

    Could you please share the detailed configuration of Flow? Perhaps we could optimize the structure to try more possibilities.

     

    Best Regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1