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

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Top Solution Authors
Users online (4,911)