cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jsalaz1989
Advocate II
Advocate II

Need flow to use one connection or another

Hi,

 

Can the same flow use two different connections "dynamically"? Perhaps with solutions? 

 

I have to run two identical flows, their only difference being the file system connection they use (I can't use the same connection for both). I want to avoid duplicating the flow and having to maintain two identical flows. I thought that I could solve this by using solutions. For example:

  • In solution A I create flow A and link it to connection A
  • In solution B I add flow A and connection B
  • In solution C I add flow A (again) and connection C.

If I change flow A, I see it reflected among all solutions - great!

 

However, flow A is tied to connection A. Is there a way to link flow A in solution B to connection B while flow A in solution C is connected to connection C?

I thought about importing or cloning solutions, since during import you are prompted to choosee the original connection or set up a different one. So I guess that by importing solution A into solution B and C, I can then choose their respective connections. However, I believe importing/cloning is a copy operation and does not create a reference to the original? Therefore, I would either still have to maintain multiple versions? Or worse, keep reimporting A into B and C, each time essentially destroying B and C temporarily.

 

Another option is to have forks in the main flow to use one connection or the other (if conditions or switch cases) but that seems clunky and not too scalable. And I would still have to maintain the identical parallel branches of the forks which only vary in the connection they use.

 

In other words, if connections could be passed around to flows like parameters, that would solve my problem. Is there some way to mimic this?

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
jinivthakkar
Super User
Super User

@Jsalaz1989 there is no way to pass connections dynamically like parameters.

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
jinivthakkar
Super User
Super User

@Jsalaz1989 there is no way to pass connections dynamically like parameters.

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,606)