Julio29 | 2024-10-23 22:44:17 UTC | #1
Good day, please help me with the following.
Within a Data Action, is it possible to convert a String field that has comma-separated values to an output contract field of array type?
For example: My webservice returns a field with the following data: ABC,DEC,XYZ
I want to change this value to an array field, so that it can be available in a Script.
Would this conversion be possible in the Data Action? Is there a Velocity Macro command?
Jerome.Saint-Marc | 2024-10-24 12:54:17 UTC | #2
Hello,
This answer from Jason on an older post should be what you are looking for: https://developer.genesys.cloud/forum/t/help-to-split-a-string-and-insert-it-into-an-array-object-dataaction-output/24653/9
Regards,
Julio29 | 2024-10-24 16:27:27 UTC | #3
Thank you very much for your support. It worked for me! I followed that post as a guide.
system | 2024-11-24 16:28:21 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 30037