2022.2

Table Of Contents
figurations\Resources\Datafolder).
Thesampledatayields5recordswithcustomerdataincludingadetailtablewithinvoicedetails.
Muchoftheinformationintheextractedrecordsisn'tusedintheemail,butwasusedtocreatethedeliv-
erynotes.
Theemailaddressesareusedinthetemplate(intheTofield),butignoredintheWorkflowprocess
becauseitsendsemailsintestmode(see"TheWorkflowconfiguration"onthepreviouspage).
Using a Workflow variable
ThepathtothedeliverynoteisconstructedviaJavaScript:
automation.variables.em_basic_workspace+'\\DeliveryNotes\\'+record.fields.OrderNumber+'.pdf';
Thescriptusesaproperty:automation.variables.em_basic_workspace,whichisdefinedinthePre-
processorstep.(Seealso:"Propertiesandruntimeparameters"onpage249.)
Inthiscase,thevariableholdstheproject'spath.Theordernumberinthepathisextractedfromthe
sampledata.
Note: InordertousethevalueofaWorkflowvariable-an'Automationvariable'-asapropertyin
thePreprocessorstep,thepropertyandtheWorkflowvariablemusthavetheexactsamename.
Toseethescript,clickontheDeliveryNotefieldintheDataModelpaneattheright;thentakealookat
theStepPropertiespane(inthemiddle).
Toseewherethepropertyisdefined,clickthePreprocessorstepontheStepspane(attheleft);then
lookatthePropertiessectionontheStepPropertiespane.
Customizingtheproject
AprojectisagreatstartingpointforbuildinganOLConnectsolution.Thispartexplainshowtomake
changestotheproject.
DoyouintendtoexpandtheprojectintoasolutionwhereWorkflowrunsonadifferentmachinethat
alsohasadifferentregionalsetting?ThenindicatethedesiredencodingintheDesignerpreferences
(see"SampleProjectdeploymentsettings"onpage802)beforeinstallingtheproject.
Input data
Ifyourinputdataisinafile,butthefileisofadifferenttypeorhasadifferentstructure,createanew
datamappingconfigurationtomatchit.(See"Creatinganewdatamappingconfiguration"on
page200.)
Whenit'sfinished,sendthenewdatamappingconfigurationtoWorkflow(see"SendingfilestoWork-
flow"onpage418).
ThenopentheWorkflowconfiguration,double-clicktheExecute Data Mappingtasktoopenitand
selectthenewdatamappingconfiguration.
Page 139