Merge command: [strsidekick-imgfile ]
Merge variable/item: strSidekickImgFile

Comments:
This variable contains the filename of the attached sidekick image

Formula:
strSidekickSourcefield:=@ReplaceSubstring(sidekickFilePath;"/";"\\"); strSidekickSourcefile:=@If(@RightBack(strSidekickSourcefield;"\\")="" & strSidekickSourcefield!="";strSidekickSourcefield;@RightBack(strSidekickSourcefield;"\\")); strSidekickImgFilePresent:=@If(strSidekickSourcefile!="" & @IsMember(strSidekickSourcefile;@AttachmentNames);"1";""); strSidekickImgFile:=@If(strSidekickImgFilePresent="1";strSidekickSourcefile;"");