question

Kari Payton avatar image
0 Likes"
Kari Payton asked Matt Long answered

Is it possible to use or statement in partition id on pull from list.

I want to pull partitionID 1 or 2 from a list of entries. Is it possible to do this?orpull.fsm

Choose One
partitions
orpull.fsm (16.5 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Matt Long avatar image
0 Likes"
Matt Long answered

If you're wanting to pull by BOTH partition ID 1 and partition ID 2 from the same Pull from List activity, you cannot currently do that. Instead you would push them to one partition and use labels or a column on the List to specify whether the entries are of type 1 or type 2. Then you encode it in your Query:

WHERE partID == 1 OR partID == 2

If you want each token that enters the Pull from List to pull from EITHER partition ID 1 or partition ID 2, then your code in the Partition ID field could be something like:

duniform(1, 2)

or conditionally:

token.myPartID = 10 ? 1 : 2 //ie if token.myPartID < 10, return 1, else return 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.