Skip to main content

I'm trying to use split() in K2 workflow designer. When I use split() with inputs like below screen shot:

 

enter image description here

 

Text to split: Test1 is the data field. Value of Test1 is Apple;Orange

Separator: ;

Return value from Split(): AppleOrange

But I need to copy the return value Apple in a datafield and Orange in another data field. Is it possible to do? if yes, can you please tell me how?

FYI: I'm using K2 Five.

Thanks!

Hi Sajna,


 


This is not possible, not OOTB. This would required additional inputs in the "Split" function configuration to allow for mapping the returned values to the datafields.


 


I'm sure this was not the answer you were hoping for but this is how this works at the moment.


 


HTH.


 


If you use the Index Item function on the result from the Spit function you can retrieve a single indexed item from the list to assign to the variable. Do the same thing, but change the index, for the other variables you are setting in the set data field step. 

 

Hope this helps.

Eric


Reply