I’m working in Azure Data Factory. I have a Lookup activity that gets a list of authors from a SQL table. Then, in a ForEach loop, I want to run a Copy activity for each author to fetch only that author’s records from the database.
I tried writing the SQL query in Copy activity like: SELECT * FROM table WHERE author = item().author but I got an error saying “item is not a recognized function”, because SQL doesn’t understand what item() is.
example---author='[email protected]'
My question is: ➤ How can I filter the Copy activity’s query for each author from the ForEach loop?