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

Question

Question

tracking page numbers with tokens - what to put in this field?

asked on May 10, 2022

I am building a workflow that is very similar to the one Ricardo posted in this link to extract pages based on the contents of that page. 

 https://answers.laserfiche.com/questions/142397/Remove-pages-from-documents#142468.

I am hung up on the first action in the wf, the Assign Token Value for page numbers. What would I put in this box here? His explanation is otherwise excellent, but none of the token values I could find in the token dialog have anything to do with page numbers. Also, I don't understand what value token tags add. I thought to add "page numbers" and from there, the dialog under page numbers recommends using integer. Please see screenshot below. Thanks. 

 

 

2022-05-10 09_13_31-Create New Token.png
2022-05-10 09_21_52-Workflow Designer.png
2022-05-10 09_22_19-Workflow Designer.png
0 0

Replies

replied on May 10, 2022

According to the instructions in your referenced post (without digging too much into the overall process), you don't put anything there in the first "Assign Token Values" task. In that task, you're just creating the token and leaving it blank.

Then, later in the process, in the "Assign Token Values 2" task, that's where you're adding a value to the token using the For Each loop iteration:

Assign Token Values 2 - Append the page number that will be deleted to the token created in step 1.   The page number is the iteration of the 'For Each Text Page' loop. %(ForEachTextPage_Iteration)

 

As far as token tags go, they help to categorize the tokens by type which can control the formatting of values placed there, and evaluate the values properly in conditions. However, I don't see any value in tagging the token here specifically for Page Numbers (I'd just leave it as a "String" type token).

0 0
replied on May 10, 2022

Dustin, thanks for the quick reply, it was helpful. These explanations in each post can never be too detailed for us beginners. 

Ok, so would this be what I would have for "Assign Token Values 2" be correct? 

2022-05-10 09_54_24-Workflow Designer.png
0 0
replied on May 10, 2022

That looks good! (just ensure you chose to "Append to existing values" rather then replace them):

0 0
replied on May 10, 2022

Wow, it works. I got your reply a little late and tested it using "replace existing values" and kept getting the last page each time...and learned it the hard way. Thanks again, Dustin. 

1 0
replied on May 10, 2022

No problem; glad to hear it's working!!

Don't forget to mark the initial response as the answer to the initial question in this post. Cheers!

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

Sign in to reply to this post.