Pass variable/text from template to workflow

Hi is there an easy way to pass some variables/text from the Template to the workflow.

I have a lot of varibels I pass from the workflow to the datamapper with parameters.
But can it be done the other way around ?
Right now I have some scripts who calculated filename from multiple variables in the datamapper and adds extra text to the string.
The text is then placed with white text in the top of the template/pdf.
The workflow then reads the white text into an variable [Set Job info and variables] , but it messes up some of the text and replaces - with all other kinds of special chars.

Right now I have to pass up to 3 text strings back to the workflow, can it be done another smarter way and not with “invinsible” text in top of the template/pdf.

Job Creation settings - Parameters ?

Hi Klaus,

You could use a Post Pagination script in the template to write the composed filename on a custom property of the content items. Subsequently use the Retrieve Items task in Workflow to rertrieve this information. See: PlanetPress Connect 2021.2 User Guide

Sample post pagination script:

contentitem.properties.myFileName= 'helloworld';

Hope this helps,

Erik

Go to the documentation, in the Output Type Group section of the Properties. Look at the JSON output. In it you’ll have all the data from your datamodel.

Don’t forget to set your Create Content next to use the JSON as its Data Source. Use %c, which is the content of the file (JSON) in the JSON String field.