Logic app, parse output from nested logic app to get value

MyAzQuery 171 Reputation points
2023-09-26T17:14:29.22+00:00

i am calling second logic app , from my first logic app. The output i receive from the nested logic app is as below.

User's image

i want to capture the "RETURN_VALUE" output using a variable. What expresssion can i use there ?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2023-09-26T19:14:41.3266667+00:00

    @MyAzQuery If the schema of the nested logic is going to be the same for all invocations, then a simple expression like below should work

    @body('NestedLogicAppAction')['ResultSets']['Table1'][0]['RETURN_VALUE']
    

    You can read more about expressions and operators supported in the official docs.

    But if it is possible to get multiple responses (like more tables), then you could use the Parse JSON action to get tokens for the RETURN_VALUE, which when used in the logic apps designed should automatically add a for loop for you to process each table response accordingly.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.