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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,351)