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