Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

BadRequest Status Code 400

(0) ShareShare
ReportReport
Posted on by

I built a flow once a form gets submitted where it is intended to populate a spreadsheet on SharePoint with the form contents. After populating the spreadsheet, the flow is supposed to email the necessary approvers but isn't doing so. I've checked against another flow someone on my team built that works correctly and mine mirrors it. Thoughts on how to fix this?

 

failedflow.jpg

  • Community Power Platform Member Profile Picture
    on at
    Re: BadRequest Status Code 400

    @ScottShearer Think I've got it figured out, thanks for the assistance

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: BadRequest Status Code 400

    @Anonymous :

    One more thing...

    I noticed that in your condition after the last approval, your are testing for "Approved" - the responses are "Approve" and "Reject".  The condition will never be true if you test for Approved.

     

    Also, you want to update the Approval actions to the new "Start and Wait for an Approval".  If you do, you will check the Outcome from Dynamic properties.

     

    Scott

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: BadRequest Status Code 400

    @Anonymous :

     

    First, you need to move your approval actions below and ouside of your loop.  That will fix your timeout issue.  You can reference the data from the SharePoint list item in the approval.   To do so, use a SharePoint Get Item action after the loop and before the approvals.

     

    Then, I suspect that you'll want to put conditions in after the first and second approvals.  So, if the first person rejects the approval the it doesn't go to the second approval.  Likewise if the second approver rejects then the third approval never happens.

     

    Scott

     

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: BadRequest Status Code 400

    @ScottShearer I have 3 approvers because the process I built this for operates on a tiered approval system where each person needs to approve the request before it gets sent to the next person. The flow currently isn't even sending the information to the first approver, let alone the second and third. Do I need to add another step prior to starting the approval chain?

     

    The way I designed this to work is when someone submits the form, the flow populates a Sharepoint list, which then kicks off the approval process and lastly sends an email saying the request was either approved/denied. Is there a better way for me to build this than how I currently have it set up? Appreciate the help...

  • Verified answer
    ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: BadRequest Status Code 400

    @Anonymous :

    I should have looked more closely at your Flow - sorry.....

     

    Your issue is that you have approvals inside of your loop.  The Flow will pause on each approval until a response is received from the approval causing the timeout.

     

    You'll need to redesign your Flow to have your Approvals outside of the loop.  Maybe you can set variables and reference the variables in subsequent actions.

     

    Also, why do you have 3 successive approval actions?

     

    Scott

  • Community Power Platform Member Profile Picture
    on at
    Re: BadRequest Status Code 400

    Flow test timed out after 10 minutes

  • Community Power Platform Member Profile Picture
    on at
    Re: BadRequest Status Code 400

    @ScottShearer Trying that now, currently re-testing and has been running for 3+ minutes so far, hasn't failed yet but also hasn't succeeded. Previously, the flow failed straight away. Is there a given amount of time for how long a flow should take to successfully run?

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: BadRequest Status Code 400

    @Anonymous :

    Have you tried re-selecting the Form from the dropdown list in the trigger?

     

    Scott

  • Community Power Platform Member Profile Picture
    on at
    Re: BadRequest Status Code 400

    @ScottShearer I'd previously tested the flow by performing the trigger action with myself as the recipient and it worked flawlessly, but now that other people are using it, it's not working and everything looks ok

    flow.jpg

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: BadRequest Status Code 400

    @Anonymous 

    Can you post a screen shot of your Flow?  That will make it easier to assist.

     

    Scott

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow