Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Increment variable inside loop — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Increment variable inside loop

Accepted answer
28
Views
3
Comments
edited Dec 13, 2020 8:59AM in Integration 3 comments

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>

}

}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!