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

Question

Question

Email Attachments without Last Page

asked on August 22, 2018 Show version history

I've a workflow that searches the repository for a particular document by filename. The filenames for these documents are unique, so I only return the first result. In the Additional Properties section for this task I have it grab the Page Count. I then create a token named NoLastPage, via the token calculator tool, which takes that count and subtracts one. Such that, for example, if it's a 3 page document, the token value is 2. All of this is working perfectly as evidenced by the Track Tokens tool results for a given instance.

 

Next, I'm emailing this document as an attachment. In the Properties for Edit Attachment dialogue window, I've selected "Only include page(s") with a value of 1-NoLastPage. However, each time it runs, it is still emailing the final page. What I'm wondering is if it's not accepting a token name for the last half of the range in 1-NoLastPage. Does that have to be a number, or can tokens be used there?

 

I'm not getting any errors when running the workflow.

 

Thanks,

Michael

0 0

Answer

SELECTED ANSWER
replied on August 22, 2018

I did something similar to this today. I was searching for a specific string within a document and wanted to copy only the pages where this string appeared. I was able to store each page number within a multi-value token then use this token (each value separated by a comma) on the "page range" portion of the move pages activity. I believe it should work for you, here is what my move pages activity looks like:

Just to confirm - you are sending a Laserfiche Pages document? I do not think it would work properly with a PDF.

1 0
replied on August 22, 2018

Hi Tyler,

 

   Yes, I'm attaching the document as a Laserfiche Pages document. So, in looking at your example, I realized the mistake I was making. I was entering my token in plain text instead of within the token wrapper. Ex: NoLastPage instead of %(TokenCalculator_NoLastPage). Once I changed this the workflow operated as it should. I think I need a vacation...

   Thanks for you input, it pointed me in the correct direction.

 

Thanks,

Michael

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.