locked
Response RRS feed

  • Question

  • Hi,

    Can some one help me how to capture error information from response action when sending request to sqlserver or webservice.

    Example: If record 1 is not present in sqlserver then exception occurs, next step it will directly send to after run configured step, before that is there any way to capture error code or error information from response to decide further steps.


    Regards, vishal

    Friday, March 1, 2019 1:22 PM

All replies

  • 1) Can initialize a variable in case action fails. This enables you to inspect the JObject provided by the            @actions('…') expression in error handling to get the error details.

    2) Can catch and handle failures with the RunAfter property

    3) @result() expression provides context about the result of all actions in a scope. To run action for each        action in a scope that has a Failed result, and to filter the array of results down to the failed actions,            you can pair @result() with a Filter Array action and a For each loop

    For the complete reference, follow the below link.

    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-exception-handling






    Monday, March 4, 2019 3:17 AM
  • Any updates on this ?
    Thursday, March 7, 2019 8:53 AM