Does anyone know how to access values stored outside "Direct mail delivery"? I wanted to create a dynamic filename (as shown in below screenshot), based on timestamp happened before this component. I tried to access a variable defined in a js file that was loaded in loadLibrary(XXX.js), but it didn't recognize the variable; also tried to visit instance.vars.XXX, but still with no luck... Any solution for this?
Hi,
You can add data outside of the delivery from the included box on the right of the input box (see the screenshot below)
Thanks,
Pulkit
Moved, thanks!
Views
Replies
Total Likes
Hi Pulkit,
Thank for your response.
But if that means I need to create a dedicated column in target dimension to hold up the value, then I would rather treat it as a workaround: I could have 200 - 600 records in target dimension, in which case I may need to run a query to update all of them...
Thank,
David Zhang
Views
Replies
Total Likes
Have you try something like this 'filname_ <%= vars.executionTimeStamp%>'? This is work as well.
Thanks,
Pulkit
Not really, as what I wanted is a saved timestamp (in vars) when running a component, during the workflow run.
Anyway, currently I'm planning to address it in this way: create a fixed-name file (e.g. ABC.csv), then after it's done, use another JavaScript module to rename it to whatever I needed right away.
Thanks,
David Zhang
Views
Replies
Total Likes
The example in my previous response is using a variable defined in the workflow.
This is a standard use case; please consider all your options before 'over-engineering ' your solution.
Thanks,
Pulkit
Just tried, and got below error message:
"
Thanks,
David Zhang
Views
Replies
Total Likes