Reputation: 115
I have just started with ADF development, and I am stuck with the following requirement.
Upvotes: 0
Views: 211
Reputation: 5044
You can use the combination of Lookup activity
to get the collection, CopyActivity
to write files to ADLS.
In the below example, I have used a field in the record a parameter to iterate over each record i.e @string(item().CustomerID)
, but you can use as per your collection.
And modify the query as per your need.
(requirement no. 1)
CosmosDB source query:
@concat('select * from c where c.CustomerID = ',variables('ids'))
Then make sure you have the right files extension mentioned in the sink properties and corresponding dataset properties as well. I have used .tsv with pipe(|) delimited and another is a .csv file. (as per your requirement no. 2 & 3)
Upvotes: 1