07-11-2025 09:14 AM
Hello,
Looking for some help on parsing a string in webex contact center flow designer. I have a string variable that looks something like this..
xxxxxxxxx;yyyyyyyyyy
I'm trying to parse the string to just get the values prior to the ';' (so all the x's).
I'm using the following formula in my set node but it's failing (vVariable is the variable described above)....
{{substring(vVariable, 0, (indexOf(';',vVariable)-1))}}
Thanks for any help.
Ryan
07-12-2025 02:04 PM
If this is for WebexCC, wouldn't you use a function like slice in pebble to get you what you want?
07-13-2025 11:28 PM
Hello @rbroersma ,
Using pebble, you can use a function similar to the below to retrieve what you want:
{{vVariable | split(';') | first }}
07-14-2025 03:04 AM
Hi @rbroersma ,
In Webex Flow Designer, the correct syntax for indexOf is indexOf(vVariable, ';') (variable first, then the character). Also, to include all characters before the semicolon, you don't need to subtract 1.
Try this instead:
This will extract everything before the semicolon.
Hope this helps!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide