This has been posted by a lot of people but there is still not a clear explanation for what causes the issue. Note, these are not acceptable solutions:
- rebuild the app
- rebuild the flow
- remove the flows from the app, reomve the button and recreate the button
- export and re-import the solution, recreating the flows
I have an app with multiple buttons, each linked to a flow. If I press the button, it calls the flow (I am the flow owner). If another user presses the button, an error is displayed regarding the connection. When a new user runs the app, they are presented with the dialog to approve access to SharePoint (as per screenshot) but there is no reference to accessing the flows. Should there be?
The flow uses the SharePoint connector. All users have access to the SharePoint list that the flow reads from/writes to.
I have tried removing the flows from the app and readding. That made no difference.
Are the App and flow built in a solution? Or were they built standalone? If standalone you need to share both the app and the flow with the users. Flows that are started using a Power App button run in the security context of the user pushing the button. So they need to have direct access to the app. That means adding them as an owner of the flow.
If the app and flow are built in a solution then you need to make sure that the flow uses a connection reference in the solution rather than just a connection.
Thanks. The flow and app are both within the same solution. I have created a connection reference in the solution which is being used by the flows. I have a similar setup for another solution (contains app, flows and connection reference) and this problem does not exist there.
Have you shared the flow with the other users in addition to the app? It shouldn't be required but that has been the fix when I've seen this problem with others.
You can't share a flow without giving ownership. I tried it on one of the flows, and it did solve the problem, but making every end user and owner of a flow is not possible.
I understand that sharing the flow makes them an owner. As I said it shouldn't be required if you build them in a solution and use connection references. But I've seen this issue before and the only solution is to share the flow with them as an owner. The other alternative is to open a support ticket and see if MS can fix the issue.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us on June 28 for our monthly User Group leader call!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.