Increment variable inside loop
Content
Hi,
Assume, in my source we have 5 records. Our target system expect the input request like below.
Our Expectation is we need to increment the sequence (seq) value inside the loop based on the record count. How to achieve this? If we create the record one by one then we can use expression and increment the variables, but we have to call this in single payload.
{
{
"Seq":1
"Record":<Record 1 Values>
}
{
"Seq":2
"Record":<Record 2 Values>
}
....
{
"Seq":5
"Record":<Record 5 Values>
}
}
0