pass jobinfo /email addres to pdf document

Add the email sender/subject to the PDF metadata using a Workflow script.
Then when you pick up those PDF, extract the metadata from it and pass it as a runtime parameters to the Datamapper.

Add keywords to PDF metadata:

set MyPDFInfos = CreateObject(“AlambicEdit.PdfInfos”)
set MyPDF = Watch.GetPDFEditObject
MyPDF.Open Watch.GetJobFilename, False

MyPDFInfos.Keywords = “KeyWord1;Keyword2”

MyPDF.SetInfos MyPDFInfos
MyPDF.Save False
MyPDF.Close

Extract keyword from PDF metadata:

var myPDF = Watch.GetPDFEditObject();
myPDF.open(Watch.GetJobFileName(),false);

var meta = myPDF.GetInfos();
Watch.SetVariable("keywords",meta.keywords);

myPDF.Close();

Of course, if you kept all of this inside a single process, you could do the following:

1- Email input flow, M365 input… some dirty code…
2- Add the email sender/subject to local variables
3- Call the Datamapper and pass it the email sender/subject as runtime parameters
4- Voila!