How can I pass Workflow variables to a Datamapper

I need to capture some information in Workflow from the first line of a text file and then delete that line. How can I pass this information to a datamapper? I understand that it is possible using jobinfos but how do I pick up the jobinfos in the datamapper?

See this online help page.

Thank you, Phil. I think I’m still missing something though.

I’ve given JobInfo9 a default value in the preprocessor. In my Extraction I’ve added a new field called EmailAddress. I’ve then created this script -

var EmailAddress;

EmailAddress = automation.jobinfos.JobInfo9;

EmailAddress;

However I get the message Error running script (TypeError = Cannot read property “JobInfo9” from undefined).

What am I missing?

you have an extra “s” in the JobInfo instruction (and also remember JavaScript is case-sensitive). It should read:

EmailAddress = automation.jobInfo.JobInfo9;

Thanks Phil

That has worked.

The page that you linked to above has the s at the end of jobInfo.

Thanks for pointing that out. I have asked our documentation team to correct the information.