Avatar

Level 3

Thanks Jean for your inputs

Its a typo while i wrote here, however, its mentioned correctly in Campaign i.e without space.

Also, I am calculating the file name based on my inputs like - vars.fileNameOnly = 'TEST_' + vars.CompNam1 + '.csv'; in the previous JS node and can see the proper output in the log, but its failing everytime when I use it in Delivery.

Using this in delivery-

<%= vars.fileNameOnly %>

The strange thing is when I use the other variables like - Add current date - which is inbuilt ( <%= formatDate(new Date(), "%2D/%2M/%2Y") %>), its working perfectly fine.

Also, in the script tab of delivery, I tried reading it- vars.fileNameOnly and its coming fine in the log.

Anything wrong with my template?