How can I access a metadata value in my Connect template?

HI,

I’m trying to recreate a mail job workflow with Workflow 8.1 and Connect and I’d like to know how I can display metadata values in my template (like the address block after it’s been cleansed by address correction software).

My original v7 document used a PressTalk call to GetMeta to grab the metadata value. How can I do that in my Connect template?

thanks!

Lou

Hi Lou,

In workflow, you can save your data values in job infos ou variables and in the data mapper you can use Automation of the API. for example : you save the address value in jobInfo2. So, in data mapper, you can extract this value by adding an extract step based on javascript. In the script editor write this instruction: automation.jobInfo.JobInfo2;
Note that to acces to the API, in the editor script, click on CTRL+space. In our example, select automation add dot “.” and some options are listed. choose jobInfo. and then add dot “.” and select the jobInfo2.

I hope that it answers your question

Fadila

Lou,

What you can also do is update your metadata fields directly in the Workflow so that they contain the corrected values. Then, when you use the Create Content task, tick the “Update Records From Metadata” option. This option instructs the Server to update the original data records prior to generating the content.