Syntax for filtering the json value which is in nested loop

Pavan Rakesh 1 Reputation point
2022-06-02T09:43:53.533+00:00

We have pipeline where will get the output in the json format which we need to filter the nested loop as shown in the below.

"output": [
{
"name": "aopjrfowair",

                "Type": "customer"
               }

]

I need to fetch the "type" value which is in array. what will be syntax to write in the filter activity.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,631 Reputation points Microsoft Employee Moderator
    2022-06-03T16:26:50.047+00:00

    Hi @Pavan Rakesh ,

    Thank you for posting query in Microsoft Q&A Platform.

    Assuming some activity called abcd has this output property inside output json of it, consider writing your expression as below to get Type property value.
    @activity('abcd').output.output[0].Type

    208313-image.png

    Please check below video for better idea.
    How to read JSON output of one Activity in to another Activity in Azure Data Factory

    Hope this helps.

    ------------

    Please consider hitting Accept Answer. Accepted answers help community as well.


Your answer

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