Skip to main content

Notifications

Power Automate - Connector Development
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?

  • SilkeHenderickx Profile Picture
    SilkeHenderickx 4 on at
    Re: Code function for requests > 5 seconds

    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)

  • 1trevor Profile Picture
    1trevor 7 on at
    Re: Code function for requests > 5 seconds

    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.

  • murshed Profile Picture
    murshed on at
    Re: Code function for requests > 5 seconds

    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.

     

  • ngromann Profile Picture
    ngromann 20 on at
    Re: Code function for requests > 5 seconds

    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.

  • Verified answer
    murshed Profile Picture
    murshed on at
    Re: Code function for requests > 5 seconds
    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 👍.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard

Featured topics