2022.2

Table Of Contents
l
TheToandSubjectscriptsapplytoemailfields.(ClickEmail Fieldsatthetopoftheemailto
expandallemailfields.)Forinformationaboutthiskindofscripts,see:"Emailheadersettings"on
page483.
l
Finally,therearetwocustomscripts:
l
ThePersonalize Support linkscriptaddstheordernumbertothe'supportteam'link
(whichisamailtolink).
l
TheYearscriptputsthecurrentyearinthefooter.
Formoreinformationaboutwritingcustomscripts,see:"Writingyourownscripts"onpage808.
The Workflow configuration
Theproject'sWorkflowconfiguration,Sending Email,containsjustoneprocess.ItisasimpleOLCon-
nectEmailprocess(see"EmailprocesseswithOLConnecttasks"onpage171).
Toopentheconfiguration,openWorkflow,clicktheWorkflowbutton,selectOpenandbrowsetothe
project'sConfigurations\Resourcesfolder.
Double-clickonatasktoseeitsproperties.
l
TheFolder Capturetaskreadstheproject'sWorkspacepathfromaglobalvariable.Thevalueof
thatvariableissetbytheSampleProjectwhenitinstallstheproject.
l
TheExecute Data Mappingtaskextractsdatafromthesampledatafileandoutputstheminthe
Metadata.
l
TheCreate Email Contenttaskcreatestheemails,usingtheMetadataasdatasource.
Notethatitsendstheemailsintest mode,whichmeansitwillsendtheemailstothesender.
ThesettingsontheEmailInfotabaretakenfromtheSampleProject.
l
TheDeletetaskisanOutputtaskthatdoesnothing,actually;itdoesn'tevenremoveanything.
ThisstepissometimesusefulwhenrunningaprojectstepbystepinDebugmode,asitforces
precedingtaskstoreturntheiroutputtotheWorkflowprocess.TheCreateEmailContenttask,
however,doesnotreturnthegeneratedemailstotheWorkflowprocess.
The data mapping configuration
TheWorkflowprocessusesadatamappingconfiguration,madewith"TheDataMapper"onpage198:
EM_BASIC Data.
Toopenthedatamappingconfiguration,opentheDesigner,selectFile > Openfromthemenuand
browsetotheConfigurations\Resourcesfolder.
Thisdatamappingconfigurationwillofcourseonlyworkwiththeappropriatedatafiles.Itwasdesigned
forXMLfilesthatarestructuredlikethisfile:Sample Data.xml(intheCon-
Page 138