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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,192)