cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Termigez1
Helper I
Helper I

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?

5 REPLIES 5
Jcook
Super User
Super User

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
Super User
Super User

@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
Helper I
Helper I

@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

 

 

@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.

I issued a ticket to Microsoft and was pointed to this url. This actually worked for me!

One question though: assigning this roles will affect the license of the users? My app is triggering Flows but using data in Sharepoint therefore the users are leveraging license from M365 standard contract.

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.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,642)