I'm fairly new to Azure Data Factory and need help with a pipeline I'm building. My goal is to read data from a CSV file stored in an Amazon S3 bucket, filter out records where the Status column is 'active', and then copy the filtered data into a SQL Server sink. I’m using a Lookup activity to fetch the data and passing its output (@activity('Lookup1').output.value) to a Filter activity. The filter condition I’ve set is @equals(toLower(item().Status), 'active'). This gives me the filtered records, but I’m unsure how to pass this filtered output into the Copy activity so that only the active records are written to the SQL Server. Any guidance on how to achieve this would be greatly appreciated. PS : I want to avoid use of Dataflows due to some other reasons.
I tried the following approach : The output of Filter activity cannot be directly used in Copy Activity, since Copy Activity requires a Source dataset and what I get from filter activity is an array of data, so I am not able to use this as a source. So we tried using Foreach activity and placing Copy Activity inside it, but encountered same issue.