Extract multiple values from a comma delimited string field

We have a customer on SMAX 24.2 that is trying to extract multiple values from a comma delimited string field.

Each of the values extracted then needs to be processed separately.

For example this may look like 'AA001, AB002, AC003, AD004, AE005' but no specific limit on the number of values.

These would then be processed as AA001 then AB002 then AC003 etc.

Suggestions so far have been to try the Split, substring and indexof functions in the expression language but nothing has yet given the result required.

An Array and loop would be really handy at this point.

Does anybody have any suggestions on how to extract the values?

  • Suggested Answer

    0  

    Hi Phil,

    I think the best way to achieve what you are trying to do is use the Integration Engine. This then allows you to create an Array as well as split the text to create the individual elements that will make up the array.

    As an example I added a string to the change Record as shown here:

     

    Now using the Integration Engine I can extract that field from the record:

    Then split the string to add to an array:

    Then for each item in the array create a new request:

    In this scenario it produces 5 new requests:

    Hope that helps.

    Thanks

    Dave