How do you split a string in AudienceStream?

Gold Contributor
Gold Contributor

Hi There,

In AudienceStream, i need to find out if there is a way to split a string and only take the second element of the string.   e.g. on action A, we get a string "add_inv_calc,56000", and i'd like to take the "56000" and store is as a visit based string attribute for each event action A that takes place.

if action A happens multiple times in a session (producing multiple strings "add_inv_calc,56000", "add_inv_calc,6000", "add_inv_calc,5000"), then i would like to concatenate those values so that at the end of the session, i would have this "56000,6000,5000".

Is this possible with the array of strings or set of strings attributes in AudienceStream?  Thanks, John

1 REPLY 1

How do you split a string in AudienceStream?

Tealium Expert
Tealium Expert

HI

That i believe (and keep me honest here folks) is not currently possible server side, though much wanted functionality (hint hint, nudge nudge Tealium). :-) 

If you can, use iQ to prep the string

Research your Experience | Improve and Evolve | Leave no one behind
- Don't forget to mark a solution as accepted if it hits the mark -
Public