cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Serbay
Resolver I
Resolver I

Calling flows from PowerApps

Hi, 
I have a short question. I have built a power app to call flows by clicking a button. Everything works fine but not for other users that I shared the app.
Question is, My flow contains several office script actions. Do I need to share them as well.? if yes, How can I share an office script for a dynamic file, rather than specific workbooks?
Thank you so much!
Regards,
Serbay

2 REPLIES 2
Jeff_Thorpe
Super User
Super User

I think I can answer half of your question. When you use a Power Apps flow the flow is running under the context of the user that kicked off the flow. This means the user will need the appropriate access to connect to everything the flow is doing because it is using the user's credentials. I haven't used Office Scripts, so I am not sure of a workaround.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Serbay
Resolver I
Resolver I

Hi, Jeff
Thank you so much for your response and for sharing your knowledge!
So As I understand, Once a user calls the flow from PowerApps, it runs on the behalf of the user not the owner of the flow. If so, this could be the reason why office scripts are not executing.
Basically, what app do, I have an attachment control to add excel files and a button to run the flow which is connected in PowerApps.
What flow do, uploads the attached files into SharePoint library and then several office scripts suppose to run. But I can see that once flow starting to run, it uploads the attached files on the behalf of the user not the owner of the flow and connections.

Regards,
Serbay

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (1,491)