I have a setup to collate different type of documents based on collationID in datamapper field into one document set. Aside from this collationID in datamapper, there are other few fields that I need to pass to Output Preset to show it on the first page of each document set which can be easily done through combination of passing values from Job Preset to Output Preset using Add additional content options.
In workflow, I have used Retrieve Items plugin and Batching/Commingling option to do the collation of documents. Unfortunately, I cannot use my Job Preset where already documented here in one of highlighted notes where only option is to use Default (Use IDs)???
I assume that you are grouping on Document Set based on the collationID field, is that right? If so, then I assume that you simply have to execute steps similar to the following ones:
1. Job Preset
Check the option Include meta data in the Job Creation wizard
Click on Next to go to the Meta Data Options page
Go to the Document Set Tags tab
Click on the Add meta data button
Select the option Add field meta data to add the necessary fields to the list of Document Set Tags
Click on Finish to save the Job Preset
2. Output Preset
Check the option Add additional content in the Output Creation wizard
Select the saved Job Preset next to Job Preset
Go to the Additional Content page
Click on the Add button and select the option Text
Click on the Add button on the right side of the Text input field once the Aditional Text window is loaded and select the option Document set meta data field to insert the necessary fields in the Text input field
Yes Marten. I have also added condition in Output Preset in Additional text window to display the fields on first page only (page.nr == 1) of the document set
Hello @rommiei, were you able to achieve what you were looking for by the information shared by this reply? If not, can you let us know please what kind of issues you are encountering?
Hi Marten. Yes I done all the information you shared. But the issue is when applying it to workflow, I cannot use the Job Preset due to this error due RetrieveItems plugins removing the contentset and retains only content IDs
[0042] W3001 : Error while executing plugin: W4206 - Metadata does not contain valid Content Set Item Collection
Well… a solution is to not execute the two Set Job Infos and Variables tasks (Workflow plugins) and the Set Properties and Retrieve Items tasks–or at least not the Retrieve Items task–before the Create Job task in this case.
Can you let us know please for what purpose these four tasks are being executed before the Create Job task?
I stored unique id (%u) onto variable and used it as property in Content Item and then used it for condition in Retrieve Items so it extracted only belongs to this run. This setup comes from different data sources so we have different data mappers executed/merged on the workflow (not shown) and Print Content/Template have quite number of Print contexts which has switch control script controlling what to print. The original problem is I have to collate these documents into set and I will not know which order document goes first in the set, only until they been collated together. So I find RetrieveItems solves the issue using Batching/Commingling. But I still have to print additional info on document set particularly on the first page of the set so I ended up using CreateOutput through Additional content. I just stored contentset id into local variable for the purpose using it script later on.
Hi Rommiei, There is a way, but you will need to use OL Connect REST API. Screenshot below is from a workflow process doing sorting, grouping, and outputting with additional text.
First four steps are there just to show content creation. Run Script @5 uses REST API to create the job. Then the job & jobset IDs are added to an empty metadata so Create Output plugin can be used as usual.