I want to create a copy activity, with a dynamic query, based on an array variable, inside azure data factory, for example I only want to load the information of the IDs that are in the table A of the database X inside the table B in the Y database.
The code in the set variable activity associated to the variable ID_Variable would be: Select distinct ID from tableA;
And I tried it like this in the copy activity: Select * from tableB where ID in (@variables('ID_Variable'));
But it didn't work, thanks in advance