Counter based on sort order

Each document that goes out needs to get a number from 1 - n printed on it as part of the address block. I have considered using the record id but this is not in order from 1 - n when data is sorted. Is there a way I can do something similar with a counter or something else that respects the sort order?

Hi Nick,

What I do after a job is sorted in Workflow is use a Output Preset to Add Additional Content that adds a sequential number to my pages. Is that what you are after?

EDIT: Create an output preset in the Connect designer. Select Add Additional Content checkbox, click next. In the Text & Images tab select Add, top right of Additional Text area, specify document orientation and the location you want the sequence number, select font, size, colour etc. Select Add located top right of the Text area. Then in the context menu hover over Info Field and then select Document Number. Click OK and proceed to save you preset with a meaningful name. Send that Output Preset to Workflow with you template etc.

In Workflow you can use the All In One plugin. In the plugin properties you just select your datamapper and template. leave Output Creation tab set to None and select the Through Workflow radio button. After that you will use the Create Job that uses your sort Job preset and then the Create Output plugin that uses the Output Preset that adds additional content followed by a Send to Folder.

Regards,

S

Thanks Sharne. We’re looking to not use Workflow as much as possible but run things using the REST API.

You still have to use output preset just like Sharne proposed but use it in the REST call

http://help.objectiflune.com/en/planetpress-connect-rest-api-cookbook/1.8/#Cookbook/REST_API_Reference/Output_Creation_Service.htm