Split() method in workflow does not work

Nancy8
Giga Contributor

The requirement is to get a list of users from catalog item form and assigned them to groups.  I used the variable type:list collector for variable "Select User (g_1_user).  In my workflow, I used "Run Script" to run the following script:

find_real_file.png

In logs, I got a list of user returned: , but when I was trying to use "split(",")" method to split each user, I got "undefined" the error (size====undefined).  It seems "Split() " doesn't in workflow.  Any suggestion how to split a list of users in workflow?

find_real_file.png

 

1 ACCEPTED SOLUTION

Cool - please mark as answered if this answered your question. Thanks

View solution in original post

7 REPLIES 7

Cool - please mark as answered if this answered your question. Thanks

Isn’t that the same answer I had already given?

Hrm, so it is; mark Jon correct! Sorry, late nights...