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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Code function for requ...
Power Automate
Answered

Code function for requests > 5 seconds

(0) ShareShare
ReportReport
Posted on by 20

I am trying to take adventage of the code functionality to change the request URL of an action. However the documentation says that "Your script must finish execution within 5 seconds" 

Does this time include the duration of the actual request? And would that mean, I can't use scripts, if my api takes longer than 5 seconds?

Categories:
I have the same question (0)
  • Verified answer
    murshed Profile Picture
    Microsoft Employee on at
    The answer is yes. It includes the time to the backend
    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.
  • ngromann Profile Picture
    20 on at

    Thanks for making this clear. This makes this feature in my point of view unusable, as small latencies (for example the startup time of the service when in idle) would result in errors.

  • murshed Profile Picture
    Microsoft Employee on at

    It's designed to solve smaller problems that could not be solved otherwise in a connector. For task heavy operations you should extend your service and just create a connector action instead.

     

  • 1trevor Profile Picture
    7 on at

    Can you clarify what you mean by "create a connector action instead"?

     

    In all our cases, the custom code is being used to solve smaller problems. The custom code isn't causing any latency whatsoever. There is unpredictable latency in the backend application, which we would like the end user to be able to handle using native Power Automate timout controls just like they can with any other connector. The 5 second timeout should only apply to the custom code itself.

  • SilkeHenderickx Profile Picture
    4 on at

    I am replying to this because I have added a feature request in the Microsoft Community portal to not take the actual response time into consideration in the 5 seconds maximum execution time of custom connector code.
    Please vote if you feel this would be a useful addition.

    Custom Connector Code allow call to take longer than 5 seconds · Community (powerautomate.com)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 570

#2
Valantis Profile Picture

Valantis 405

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard