Skip to main content

Notifications

Calling Actions from Copilot Studio
Unanswered

Triggering multiple instances of the same flow simultaneously?

Posted on by

Yesterday I was testing my BOT which calls a flow to create an ICM ticket. In doing so, I ran into an unexpected, and untrapped error in the dialogue JSON which really threw me for a bit of a loop. Basically, due to a wait step in my process, I had attempted to trigger the flow again before the previous run had completed. I wasn't aware that you could only instantiate a single flow at a time and I was curious if there is a way around that particular restriction or do I need to get a bit more creative with my solution to reduce the chance of collision?

 

 

Categories:
  • MarKol Profile Picture
    MarKol on at
    Re: Triggering multiple instances of the same flow simultaneously?

    Your should be able to trigger the several instances of the same flow to run at the same time from PVA, this is supported.

  • Dhinakaran Profile Picture
    Dhinakaran 31 on at
    Re: Triggering multiple instances of the same flow simultaneously?

    Hi JoeGill,

     

    You are right. This makes it want to run as asynchronous, so we are pretty much not able to leverage the concurrency control feature as we typically use "Response" action as part of Power Automate with PVA.

    Thanks for pointing out, JoeGill 🙂

     

    Best,

    Dhina

  • jpirelli Profile Picture
    jpirelli on at
    Re: Triggering multiple instances of the same flow simultaneously?

    I did a bit more testing, by default, flows can run concurrently. This is great info but maybe a red herring on my errors last night. I was able to reconfirm that multiple instance are able to run at once.

     

    I'll keep working on my repro, this could have been a red herring entirely.

     

  • JoeGill Profile Picture
    JoeGill 168 on at
    Re: Triggering multiple instances of the same flow simultaneously?

    Hi Dhina,

     

    Happy to be wrong on this. If you change the degree of Parallelism to 1 then you need to change your Flow to be asynchronous. I could not get my Bot to call an Asynch Flow. I would have been surprised if it did as it would require a callback of some type from Flow to PVA.

     

    I was able to add a  10 delay to my flow and call it from multiple Bot sessions without any problem.

     

    Joe

  • Dhinakaran Profile Picture
    Dhinakaran 31 on at
    Re: Triggering multiple instances of the same flow simultaneously?

    Hi @jpirelli 

     

    Please try the below steps and see if it resolves for you.

     

    1. Go to Settings of the first Flow Step.

    2. Turn on the Concurrency control and set the Degree of Parallelism to 1.

    I have attached an image for you reference.

     

    Hope it works!.

     

    Best,
    Dhina

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,990

#3
Expiscornovus Profile Picture

Expiscornovus 1,700

Featured topics