Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

Create temporary object (e.g. List) for mapping in OIC

edited Oct 30, 2018 9:21AM in Integration 8 comments

Summary

Temporary object for mapping

Content

Hi,

Let's say that I want to implement a rest API that will return a JSON array, but this array will be filled in using a loop under certain conditions. How can I achieve this in OIC?

For instance, if i want to implement the following javascript code in OIC:

var cars = ["Saab", "Volvo", "BMW"]
var result = [];
cars.forEach(element => {
if(element == "Saab" || element == "Volvo"){
result.push(element);
}
});

Thanks,
Paulo

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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