You are viewing limited content. For full access, please sign in.

Question

Question

Workflow - Repeat Activity - generating and checking random numbers

asked on September 30, 2021

Hello,

 

I am generate a random number using a custom query, then I check if the random number exists in a table. If that is the case then I want to repeat the process until that random number does not exists in the table to avoid duplicates.

 

Condition:

 

Error messages:

 

 

 I would assume I am receiving this errors since the 2 variables are inside the repeat functions. How do I go around this? Do they need to be outside of the Repeat?

 

Thank you.

 

 

0 0

Answer

SELECTED ANSWER
replied on September 30, 2021

Hi Julian,

Is your Repeat set to evaluate the condition Before or After running the contained activities?

I'm betting you just need to toggle the option to After running contained activities.

 

Hope this helps!

Molly

0 0
replied on September 30, 2021

Oh well. That was it. I missed that option in there.

 

Thank you for the help and quick reply.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.