Subhash Ghai
Subhash Ghai

Reputation: 115

stuck with basics of ADF pipeline

I have just started with ADF development, and I am stuck with the following requirement.

Upvotes: 0

Views: 211

Answers (1)

KarthikBhyresh-MT
KarthikBhyresh-MT

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)

enter image description here

Upvotes: 1

Related Questions