cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Repeat on a static list

johnw
Executive Chef I
Executive Chef I

curious what the trick is to do a repeat on a hardcoded static list.

Was going to create a function which woudl work but would add extra tasks so figured a loop would be easier.

basically I have 1 Opportunity which might need to process PO onto Company 1, Company 2 or both Company 1 and 2.

I've been trying to hardcode "Company 1", "Company 2" into my repeat but once inside the loop I can't get to the repeat step to figure out which company I am in.

hope this makes sense? should something like this work? or do I need to create a list and repeat on that which would cause unneeded tasks in my opinion

johnw_0-1702664361294.png

 

1 ACCEPTED SOLUTION

gary1
Executive Chef III
Executive Chef III

I responded to another question recently and covered how to loop through static lists. 

You'll have to convert your list to an array with a formula like "TORONTO,SAN DIEGO".split(',').

If you follow this, you should be all set, but let me know if you need more help.

https://systematic.workato.com/t5/workato-pros-discussion-board/performing-a-lookup-for-all-of-the-i...

 

View solution in original post

1 REPLY 1

gary1
Executive Chef III
Executive Chef III

I responded to another question recently and covered how to loop through static lists. 

You'll have to convert your list to an array with a formula like "TORONTO,SAN DIEGO".split(',').

If you follow this, you should be all set, but let me know if you need more help.

https://systematic.workato.com/t5/workato-pros-discussion-board/performing-a-lookup-for-all-of-the-i...