2022.2

Table Of Contents
Deploying OL Connect resources
OLConnect'sfile uploadnodeuploadsasinglefiletotheFileStore.
Thisnoderequiresthepathtotheresource.Thisshouldbethefullpathtotheresourceorapathrel-
ativetoeithertheNode-REDinstallationorapathrelativetothecurrentNode-REDproject.
Ifnotconfiguredinthenode'sproperties,thenodeexpectsthisinformationinmsg.filename.
MakesuretochecktheMark as permanentoption.Afilemarkedaspermanentwillnotberemovedby
OLConnect'sClean-UpService.
AlsomakesuretoselectthecorrectOLConnectserver,orentertheconnectiondetails(see"Con-
nectionsettingsforOLConnectServer"onpage183).
Tip:
l
Youmayneedtoiterateoveranarraythatcontainsthenamesofthe
resourcesanduploadthemonebyone.Thiscanbedonebyaddingasplit
nodebeforethefile uploadnode.See"Iteratingoveritemsinanarray"on
page188.
l
Thesplitnodeonlyworksonmsg.payload,notonitschildobjects.You
mayneedtomovethearraythatcontainstheresourcenamestothepay-
load.See"Settingandmovingmsgproperties"onpage188.
l
Toconstructthepathyoumayneedtoconcatenatestrings.See"Con-
catenatingstrings"onpage188.
An OL Connect email flow in Node-RED
ThistopicexplainswhichnodesandfilesareusedinatypicalOLConnectemailflowinNode-RED.
Tip: AneasywaytocreatethefilesthatthetypicalOLConnectemailflowneeds,istousea
Sample Project.See"SampleProject:BasicEmail"onpage135.Youwoulduseallfilesexcept
theWorkflowconfigurationfile.
The structure of an OL Connect email flow
InanOLConnectemailflowonlyonepluginisessential:theemail contentplugin.
Theemail contentnodecreatesasetofemails,usingtheEmailcontextinaConnecttemplate.
Ifthetemplatedoesn'tneedanydata,setmsg.payloadtoanemptyJSONstring:{}.
Ifthetemplateshouldbemergedwithdata,youwillneedtoprovidetherequireddata.Thedatacanbe
theoutputoftaskslike:
Page 190