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

Map a delimited string to a repeating element

edited Aug 9, 2018 1:35PM in Integration 10 comments

Summary

Map a delimited string to a repeating element

Content

I have delimited string of ids. Example : id1,id2,id3,id4,

How can I map this string to a repeating element which is an array of ids.

That is the above string should get converted to an array with id1 id2 id3 and id4 as each of its elements.

I tried a while loop which loops till the string is "" and inside I used substring-after and substring-before to extract each of the ids.

But in this case the mapping always happen to the first element of the repeating element. i.e only id4 gets mapped.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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