JSON body for an HTTP request needs to look like:
{
"OrderId":"234",
"SupplierId":"JJ889",
"OrderedProducts": [
{
"ProductId":"123",
"Sku":"ABC123",
"Description":"Thing 1"
},
{
"ProductId":"435",
"Sku":"XYZ987",
"Description":"Thing 2"
}
]
}
And I have a CSV file that looks like:
ProductId,Sku,Description
123,ABC123,Thing 1
435,XYZ987,Thing 2
....
But when I substitute "ProductId":"${ProductId}" (and the other variables for sku and description) in the HTTP Request body data I end up with:
{
"OrderId":"234",
"SupplierId":"JJ889",
"OrderedProducts": [
{
"ProductId":"123",
"Sku":"ABC123",
"Description":"Thing 1"
},
{
"ProductId":"123",
"Sku":"ABC123",
"Description":"Thing 1"
}
]
}
How do I ensure my collection of products is unique (i.e. different CSV line) per request?