Have a flow triggered from a PowerApp where users can add travel items from SharePoint into their Office365 Outlook calendar.
Powerapps passes the SharePoint Item ID and calendar ID to the flow which then get the item and fires off a "Create Event (V2)" action.
I have tested succesfully using an administration account, and my own employee acount. However, everyone else that I've tested with has this flow error occur when they trigger the flow from PowerApps:
I checked to make sure that the calendar id these runs receive is indeed correct, and they are unique, so I assume they are.
Not sure what else might be causing this so any help appreciated! The user triggering the flow is trying to add an item into their own calendar, so I'm not sure how they only have read permission.
Unless the flow is actually running as me (seeing as I created it) and trying to add the event to their calendar as a different user?
Did you shared the app to the user and then also give the owner permission of the Flow to the users? If so, then yes, the users are actually using your account to access the Calendar. Unless the users create their own Flows to work with this app, they will always use your account to run the Flow as the owner in the app.
I have shared the app with the user, however not the flow.
So, if I am understanding this correctly, even though I have passed the user's calendar ID into the Flow and it is that user that is inacting the Flow, the Flow itself is running under my credentials?
If this is the case, I don't understand how my 2 testing accounts (which don't have any permissions one each other's calendars) were able to write to their respective calendars via the same flow, whilst any other user I've tested with is not.
I have the exact same problem: I have a list of events displayed in a PowerApps app, that people in my organization can sign up to. Each event has a date and time. So it would be nice, if I could make my flow create a calendar event in a users's calendar when he/she clicked the "Sign up" button in the PowerApps app.
Did you succeed with something like this?
No luck so far at my end unfortunately. I raised this with Microsoft support through O365 Admin Portal and they gave me the "workaround" below. I'm not sure as yet what exactly they mean by it though:
"It is a limitation from product, run only isn't supported for PowerApps. Run-Only flows are supported for the Flow mobile app.
If you have a flow with a Flow Button for Mobile trigger, you can go to the Flow details page and add a user as a "Run-Only User". Users would use their own connections for such a flow."
Check out the winners of the recent 'Can You Solve These?' community challenge!
Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.
Features releasing from October 2020 through March 2021
Fill out a quick form to claim your user group badge now!