Search code examples
azure-logic-apps

Logic App - Configure to follow a 308 PermRedirect


As default Logic Apps do not follow a 308 Perm redirect.

Does anyone know how to configure a logic app to do this.

Postman follows the request Curl will follow it if you specify -l Dotnet will follow it as default


Solution

  • The redirect won't happen automatically. You need to check the status code, and if it equals 308, then send a new request to the URL from the Location header.

    For example: Example

    Details of the Condition action: Condition Bear in mind that it runs only if the HTTP action fails, not when it succeeds (e.g., with the OK or Accepted HTTP code).

    Details of the second HTTP action: HTTP again

    Result - success: Success