cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cpldev
Frequent Visitor

triggering flow with http request trigger needs to return the following object for the button to work

i have a link/button that triggers this flow i have with the http request trigger. the flow does get triggered but the problem i have is that the spfx extension is returning a failed error message to the user because i need to do the following:

Any idea on how to achieve the below? 

 

The flow needs to return the following object for the button to work:

// FAILURE RESPONSE
{
"success": false,
"status": "Failure message goes here"
}

// SUCCESS RESPONSE
{
"success": true,
"status": "Success message goes here"
}

 

 

Thanks

2 ACCEPTED SOLUTIONS

Accepted Solutions
PrasadAthalye
Community Champion
Community Champion

Did you configure http response to that flow?

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

Power Automate Community

View solution in original post

i had resolved this. the solution was to use/add the http response action in the flow. was simple enough. 

View solution in original post

5 REPLIES 5
PrasadAthalye
Community Champion
Community Champion

Did you configure http response to that flow?

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

Power Automate Community

Can you send me a link to some steps on configuration on that? Thanks 

 

Hi @cpldev ,

 

Please refer to this article and see if it helps:

https://www.c-sharpcorner.com/article/trigger-a-microsoft-flow-with-a-button-click-on-sharepoint-onl...

And you could get more details about this trigger:

https://www.flowjoe.io/2019/08/27/understanding-the-trigger-when-a-http-request-is-received/

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

i had resolved this. the solution was to use/add the http response action in the flow. was simple enough. 

Glad it helped. Can you please mark the solution as answer?

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

Power Automate Community

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,565)