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?
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.
Hey @adsk_dc
You can use the Outputs() function to get the status code.
Sample:
Expression:
outputs('d')['StatusCode']
Res:
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!
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.
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2