cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ratnasatish
Regular Visitor

Can we run Power Automate inside Power Apps Component Library?

Hi,

 

I have created a Power Apps Component library and inside that I have called a Power Automate Flow to get some information from SharePoint.

 

When I test this inside the component on the screen, everything is working fine. I can see the results from Power automate.

 

When I add this component to a Power App after importing the component library, its failing to call the flow.

 

Component Library -> Screen 1 -> Component -> button -> Power automate (It is working fine)

 

Power App -> component -> button -> Power automate (It is not working. Power Automate is not triggering in this case)

 

I think, as the flow belongs to the component, I am not able to run it when I added to the other Power App.

 

If this is the case, what would be the approach to trigger a flow inside the component to get the details? 

 

Please help me in understanding where I did wrong and the correct approach here. Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @ratnasatish ,

 

Please try the following steps:

1\ Import my component library to a new canvas app.

 

2\ Add the component to the screen.

 

3\ 

v-xiaochen-msft_0-1619072608401.png

 

4\ Add the flow to this app.

v-xiaochen-msft_1-1619072675146.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

View solution in original post

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @ratnasatish ,

 

Please try the following steps:

1\ Import my component library to a new canvas app.

 

2\ Add the component to the screen.

 

3\ 

v-xiaochen-msft_0-1619072608401.png

 

4\ Add the flow to this app.

v-xiaochen-msft_1-1619072675146.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

View solution in original post

Hi Wearsky,

 

Thank you for the steps. After adding the flow to the Canvas App, I am able to trigger the flow from the Component. 

 

This seems that, we need to add the flow to all the Apps which are using the component. This seems to to be tricky, however, I expected that, irrespective of the App, just adding the flow inside a component can work for all the Apps using it.

 

Is this a work around for this issue or this is only the expected behavior here? Please let me know. Thank you.

v-xiaochen-msft
Community Support
Community Support

Hi @ratnasatish ,

 

This is a good idea.

Currently powerapps does not support this behavior.

You could post your good ideas here.

 

Best Regards,
Wearsky

 

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (89,546)