web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 9iKvF7kEK1H4g2y96bxTDS
Power Automate - Using Flows
Answered

Handling Rate Limiting in Loops

Like (0) ShareShare
ReportReport
Posted on 31 Oct 2019 22:43:00 by 9

In my flow, I call an Custom Connector inside of a loop. The API that the Custom Connector uses has a somewhat erratic method of rate-limiting, and it's hard to predict when I'll hit it. Ideally I'd like my flow to run, then wait 30 seconds any time it returns a 429 error, and try it again. 

 

I worked out how I could do this using HTTP by checking the status code, but I don't see any way to get the status code from a Custom Connector, even if I've defined it as a response type. Does anyone have any suggestions regarding how to handle this situation?

  • adsk_dc Profile Picture
    9 on 01 Nov 2019 at 15:26:43
    Re: Handling Rate Limiting in Loops

    Thank you! Outputs('MyNode')['StatusCode'] gave me exactly what I was looking for. 

     

    I'll have to study up on more expressions, I wasn't aware of that one.

  • Verified answer
    yashag2255 Profile Picture
    24,647 Super User 2024 Season 1 on 01 Nov 2019 at 11:02:17
    Re: Handling Rate Limiting in Loops

    Hey @adsk_dc 

     

    You can use the Outputs() function to get the status code. 

     

    Sample: 

    ff3.PNG

     Expression: 

    outputs('d')['StatusCode']

    Res: 

    rr4.PNG

     

    Note that you should configure the run after for the compose action to run if the custom connector action has failed as well. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • v-alzhan-msft Profile Picture
    on 01 Nov 2019 at 06:46:08
    Re: Handling Rate Limiting in Loops

    Hi @adsk_dc ,

     

    I have made a test and couldn't find any way to get the status code from a Custom Connector.

     

    Best regards,

    Alice       

     

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

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete