question

Kashif A avatar image
0 Likes"
Kashif A asked Matthew Gillespie commented

Custom code query in pull from list activity of process flow.

I have a pull from list activity where I want to apply a custom code query in the query field. The query I want is as follows:

There are two expression fields on the list entries. First one is "flag" and the second one is "utilization". I only want to pull those entries whose utilization is less than 95. But I want to do this check for only those entries whose flag is equal to zero. For all other entries whose flag is non-zero, I don't care about its utilization, I will simply pull it no matter what the utilization.

What should I write in query field to achieve this?

Also, is there an Onpull trigger inside the pull activity that I can use to update some global table values when a pull occurs?

pulling from lists
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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Matthew Gillespie commented

Use the query

  1. WHERE flag OR utilization < 95
There’s no OnPull trigger, but the token will move on to the next activity as soon as it finishes the pull. So you can just put a custom code activity right after.
· 3
5 |100000

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