cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Termigez1
Frequent Visitor

How to reconnect flows in a canvas app after import

Hello,

 

I have a solution with a canvas app inside inside which there are severals flows triggered by button. I want to move the solution from DEV environment do TEST environment. As you may know, there are some limitations of solutions especially regarding instant flows:

https://docs.microsoft.com/en-us/powerapps/maker/data-platform/solutions-overview

 

As a result after importing solution to the TEST environment in my canvas app there are broken connections to the flows:

1.PNG

 

I wanted to simply remove every single connection and add new one by pressing Action -> Power Automate and choosing right flow however once I do it I get the error:

Termigez1_1-1623167397339.png

 

Do you have any idea what I am doing wrong? Or maybe should I do it differently?

4 REPLIES 4
Jcook
Super User III
Super User III

Hello @Termigez1 

 

Are your Flows inside the solution as well? Please try adding the Flows to the solution.

I am not seeing any limitations in having Power Apps Trigger Flows, and Button Flows (Child Flows) inside a solution:

Snag_1a2bead5.png

 

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





CNT
Community Champion
Community Champion

@Termigez1 As @Jcook mentioned all the Flows triggered from your Power App must be inside the solution and also the connections that these Flows must also be inside the solution. E.g. If the Flow is using OneDrive For Business, then make sure that connection is also part of the solution.

With this if you Import/Export from one Environment to another, you need not re-connect the Flow in the target Environment. This limitation does not exist anymore.

But there is one very important thing: If this App is shared with other users, for them to be able to trigger the Flows, they must be assigned a Security Role and that Role must have the following Permissions. This is set in in the Customization tab (in the Target Environment).

 

CNT_0-1623171007040.png

 

 

Hope this helps!

 

Please remember to give a 👍 and accept the solution as it will help others in the future.

Termigez1
Frequent Visitor

@CNT All the flows are indeed inside the solution, however I have doubts over connections. The import wizard before letting me import the solution asks for re-establishing connections as below:

Termigez1_0-1623173483762.png

So I have to create new connection in a TEST environment and select them there.

 

Does it mean that my solution lacks connections from DEV environment and this is why Power Apps asks me to create new one and there may be a conflict here? And a solution to my issue may be just adding connections to the solution on DEV environment and then export and import new package to the TEST environment?

 

EDIT:

I checked my solution on DEV and there are connections in my solution as you can see below:

Termigez1_0-1623173941713.png

 

 

CNT
Community Champion
Community Champion

@Termigez1 

    One thing I forgot to mention: All Dataverse Tables & Choices must also be added to the solution.

    Regarding connections, if you look at the example below, I have a flow (Test OneDrive Flow) which uses the OneDrive for Business connector. To add this connection to the solution, I click on the ellipses and select Add required components. This will automatically add a Connection Reference to the OneDrive for Business connector.

 

CNT_0-1623174304701.png

To understand this better, I would suggest you to build a Test Solution with one App, a few tables, flows etc., and test it out.

It's not that scary as it appears but it is important that its set up properly from the beginning.

 

Hope this helps!

 

Please remember to give a 👍 and accept the solution as it will help others in the future.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,867)