Forum Discussion
In another word, how I can dynamically put the attachment name in the ‘Attachment’ field of Email sender snap.
This seems to be a bug in Email sender snap as the doc says:
“It may also contain JavaScript expression to be substituted with the data from the input view.”
However it is not the case.
- nganapathiraju8 years agoFormer Employee
Please state how you are using this snap.
Is it after a file writer or a document writer?
If File Writer, you can use $filename as the variable in the attachment and it will be sent as an attachment if the file is being written to SnapLogic
Can you post your snap config?
- walkerline1178 years agoContributor
Hi,
My case is 2 snaps…a mapper, then a email sender
I want to get one of the variable values of the mapper as the attachment name in the email sender snap.
Thanks
- walkerline1178 years agoContributor
Even lets say you put a file writer in front of the email sender, you cannot get variables in email sender ‘Attachment’ field.
I have confirmed with support, only pipeline varibles(properties) can be selected in ‘Attachement’ field.- nganapathiraju8 years agoFormer Employee
With file writer, whatever is available before the email snap will be available.
The other way of doing it is copy the content before doing any other operation and lead another branch to merge or inner join with the email snap.