Hi,
When using ADF (in my case V2), we create pipelines. Inside these pipelines, we create a chain of Activities.
In most cases, we always need that the output of an Activity be the Input of the next of further activity.
The following screenshot shows a pipeline of 2 activities:
- Get from Web : This is http activity that gets data from a http endpoint
- Copy to DB : This is an activity that gets the output of the first activity and copy to the a DB.
How to get the output of a activity ?
The output of any activity at a given time is : @activity(“Activity Name”).output
So the output of my Get from Web activity will be : @activity(“Get from Web”).output
Example
If my Get from Web activity gets a json output from the http endpoint like this :
{
“name”: Samir,
“mail”: “samir.farhat@mvp.com”,
“age”: “30”,
“childrens”: [
{
“name”: “Mark”,
“age”: “7”
},
{
“name”: “Helena”,
“age”: “9”
}
]
}
@activity(“Get from Web”).output
will contain the json code above
- If i want to access only childrens, i can do this
@activity(“Get from Web”).output.childrens
- If i want to access only the first children
@activity(“Get from Web”).output.childrens[0]