cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can we build collection from string?

Jump to solution

Hi Guys,

Is it possible to format a string consisting of numbers and pass them as individual values in a collection variable in a workflow?

My string format :

1

2

3

4

5

Thanks!

Labels: (1)
Reply
2 Replies
andrewg
Automation Master
Automation Master

Re: Can we build collection from string?

Jump to solution

Do I understand correctly that you want to take a string and split the values into a collection variable. Then you will probably use that collection in a ForEach or something.

I use the Regular Expression action to take a string like 1,2,3,4 and then save those values to a collection variable. See my screen shot of the Run Now feature testing the RegExp. The Pattern is a comma and using the split operation.

View solution in original post

Reply
Not applicable

Re: Can we build collection from string?

Jump to solution

Thank you Andrew!

0 Kudos
Reply