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

Question

Question

Assign corresponding token value in For Loop

asked on May 19, 2020

I have 10 Tokens, each of them need to check with database for a new value, if value found i need to set the token with that new value.

Can for each value know which token i am using and assign the value i lookup to that token?

0 0

Replies

replied on May 20, 2020

Hello Jason,

Using Laserfiche Workflow, you can loop through all the values of your created tokens using For Each Value.

So in your case, you can use the query data activity inside the loop, select the rows where the value of the token equals the column you are checking, and then replace the value of the selected token by the loop by the result from the query using the assign token values activity inside the loop.

Hope i fulfilled your needs.

 

 

 

1 0
replied on May 20, 2020

Hi,

 

Thanks,

but how the assign token values activity know I am know assigning the value of "token 3"?

In the activity i can only choose a particular token to update, or to change the "current value"

 

Thank you so much for your advice.

 

 

0 0
replied on May 20, 2020

Joseph was likely under the assumption that it was a multi-value token, not 10 individual tokens.

You should be able to use his solution without the loop but repeated 10 times.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.