cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ngromann
Regular Visitor

Code function for requests > 5 seconds

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?

1 ACCEPTED SOLUTION

Accepted Solutions
murshed
Microsoft
Microsoft

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 👍.

View solution in original post

3 REPLIES 3
murshed
Microsoft
Microsoft

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 👍.

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
Microsoft
Microsoft

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.

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,107)