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
Super User
Super User

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
Super User
Super User

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

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. 

View solution in original post

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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,383)