cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
illmatic
Helper IV
Helper IV

evoke credentials to use http request action

I have a manually triggered flow that makes a http request to a child flow.   This works well for me because my account has been provisioned with a license for the Premium connectors.   Unfortunately, other users that need to use this flow do not have the same licensing.


Is there a way to evoke my credentials in the flow to run the Http Request action?

6 REPLIES 6
PrasadAthalye
Super User
Super User

If you have a parent Chile Flow situation, you can use Run a chile Flow action ... Child flow should have a trigger 'Manually trigger a flow'. You can also pass parameters...

 

PrasadAthalye_1-1617751768357.png

Then you can configure Run only user context settings in all the flows to run in your connection context... 

 

 

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Thanks  @PrasadAthalye!   I'll try this option.  I'm a little confused as to why the flow doesn't work for others in its current state considering I have an HTTP request in a flow initiated by a PowerApps.   This one runs the flow under the user context of whoever filled out the PowerApps form, makes the HTTP request call with no issue.....

Hi Prasad,

This did not work out for me.   Running the Parent Flow from the SharePoint list button fails every time the button is clicked.   Now I am experiencing the same issues the end users were experiencing, in that the flow is not called at all from the SharePoint list.


Is the Parent/Child flow option possible to do via a SP list button?

illmatic
Helper IV
Helper IV

I wanted to provide more detail.   My use case requires multiple lists in different sites to trigger my parent flow at will, which will then run through my child flow's logic.

I have created a solution and recreated the parent and child flow.  The flows themselves work as expected, however, I no longer can trigger the parent flow from my SharePoint list button.   

 

The following is true of the parent flow:
- It is an instant flow that needs to be manually triggered.  [Is this possible bc some doc says instant flows with manual trigger are not allowed in solutions, however, I was able to successfully save it in my solution?]
- There are no connections associated with it.


Here's the parent flow:

parentflow_img.png


The button in the SP list returns an error when I click on the button that says:  Cannot run flowName.  flowName failed.   There is no instance of the flow running in PowerAutomate to investigate further.

Look like some confusion. Only Child Flow needs to be invoked manually not the parent so that Parent can invoke child.

 

If you wish to run parent flow from within the list manually, then you will have to change the trigger of parent flow to 'For a selected item'

PrasadAthalye_0-1617835961780.png

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

As explained.. this trigger does not work for my use case.  I actually need the Manual Entry trigger for the parent flow because I will not know which site the information is coming from in advance.  When you use SharePoint actions. you cannot set the site url dynamically..  The list is deployed on several sites throughout the site collection.

Hence why I used the HTTP request initially in this case.   Is there a way to trigger the flow from a SP list button without having the site URL hard coded in a SP action?   The list is created adhoc when someone submits a form via the PowerApp canvas app which provisions a site for them.  I won't know when a new site is going to be created or what it will be called... And this way also defeats the purpose of having a parent flow because then I'd have to create the parent flow who knows how many times.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA 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

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 (1,643)