Hello @Max Teitelbaum
To extract the id
values from each batch and insert them into a SQL Server table as separate records, you can use the following JSONPath expression in the mapping configuration of your copy activity:
$..id
This expression will extract all id
values from the JSON response, regardless of the number of dynamic keys or their corresponding IDs. In the mapping configuration, you can map the extracted id
values to the corresponding column in your SQL Server table. Each id
value will be inserted as a separate record in the destination table.
If you are still facing challenges in extracting the id
values using JSONPath expressions, you can try using the "Preview Data" feature in the mapping configuration to validate your expressions and ensure that they are correctly extracting the desired values. Additionally, you can refer to the JSONPath syntax to ensure that your expressions are correctly formatted.
I hope this helps