Edit

Share via


Use an asynchronous flow pattern

When a parent flow or a Power App invokes a child flow, it must send a response back to the caller within 120 seconds. If the flow doesn't respond within this time frame, the caller experiences a time-out and an error occurs.

To ensure that the caller doesn't wait indefinitely for a response, you can configure the flow to send an asynchronous response. By setting the flow to respond asynchronously, the caller receives an immediate acknowledgment that the request is being processed.

When you configure a flow to respond asynchronously, the flow sends the following response to the caller:

  • 202 status code: The 202 status code is a standard HTTP response indicating that the flow accepted the request for processing, but the processing isn't yet complete.
  • Location header: The location header in the response provides a URL where the caller can check the status of the request. You can use this URL to track the progress and final outcome of the flow.

Follow these steps to configure the asynchronous response:

  1. Sign in to Power Automate.

  2. Select Create.

  3. Select Instant cloud flow.

  4. Select When an HTTP request is received as the trigger.

  5. Add the required actions to your cloud flow.

  6. Add the Response action to your cloud flow.

    Screenshot of a cloud flow showing the Response action.

  7. Select the Response action, select Settings, and toggle Asynchronous response to on.

    Screenshot of the Settings tab of the Response action with Asynchronous response toggled on.