I have asked this question in the forum before too but let me elaborate more this time.
I have written several flows for an application I am working on. One of them is "Getting users from SharePoint Group (GSP)" and displaying them in PowerApps Screen. Flow is running in background in powerapps(can't use manually trigger a flow option either). All of my flows including GSP has action "Send HTTP request to Sharepoint API". I am able to run the flows and application is displaying all the Flow's outputs on the screen. I AM THE OWNER OF SHAREPOINT SITE, FLOW AND POWERAPPS.
Application is working fine for all co-owners (owners of SP site, Flows, Powerapps) but when they get to flow part, It throws error "Connection is not configured for this service". When they check the flow error, they are getting "INVALID CONNECTION" . They have to manually enter their connection in the flow and then it works for them. Why don't flow pick the connection of logged-in co-owner(as they have permissions) and run the flow and application without errors for all users and co-owners.
Kindly Guide !
Flows that are started by PowerApps run in the context of the user who is running the PowerApp, while Flows that are started by a connector trigger run in the context of the person who wrote the Flow. Do the people for who the flow is failing actually have the permissions to run the connector and do the HTTP calls that the Flow uses?
Yes, they have the permission to make HTTP call as they are the owner of the site and run the connector too. The flow is running in the context of the user but it's failing on HTTP call. Says "Invalid connection" when they open the flow and they have to enter their connection there from a dropdown. How can I make flow pick the connection dynamically for the user who is running it. I am okay with them to run even with my context but at least run.
If they have the appropriate permissions I'm not sure why its requiring them to manually choose the connection. What is the REST call that you are using the connection for in Flow?
So I just tried this in the lab. When I started up the PowerApp that initiates the Flow as a second user it prompted me to authorize the SharePoint connection before starting the PowerApp. But in my case the PowerApp doesn't use a SharePoint connection, only the Flow does. So users should be prompted to pick the appropriate connection when the startup the original PowerApp, since they can't do it directly after the Flow launches. Could you check to make sure that if the PowerApp itself is using a SharePoint connector that its using the same connection as the Flow? Also if you have access to the Admin center you can check the resources for the PowerApp and Flow to make sure they are using the same connection. You should see any connections authorized by the other users in that resource tab for the environment.
Yes, when they launch the app Powerapp require them to authorize connections, one of them is SharePoint that is used in flow rest API call. I am making a rest API call to SharePoint "Send HTTP request to SharePoint API"
When owners other than creators try to debug the errors, they find my connection in there unless they manually change to theirs in flow.
Hi @SaraAhmad ,
Actually, if you created an app including a flow connection, and share the app to your end users (in your Org), when the end users run this app, it would ask them to provide their own credentials to create a connection to data sources added in your app and flow.
More details about sharing an app including flow connection, please check the following article:
Based on the issue that you mentioned, I have made a test on my side, and don' thave the issue that you mentioned. Please consider remove the flow connection from your app, then re-add a new flow connection within your app, re-publish your app. Then ask your end users to run your app again, check if the issue is solved.
If the issue still exists, please consider re-assign your app's permission to your end users, then check if the issue has been fixed.
Note: Please make sure the end users have enough permission to access your SP Site. E.G. the end users is a SP Site Member of your SP Site.
I've seen a comment in another forum with exactly the same issue. In that case the user resolved the issue by exporting the App and Flow, then re-importing it and recreating the connections on Import. You might want to try that.
I have tried that. Somehow Flow is not picking SharePoint connection that we choose while launching the powerapp application. Please find the attachment. Once I manually enter the connecton, it works. Flow has been shared with users. I have tried re-adding the connection too.
Read the announcement for more information!
Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.
Features releasing from October 2019 through March 2020
Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications