Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to access values stored outside "Direct mail delivery"?

Avatar

Avatar
Boost 1
Level 1
david_dz_zhang
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
david_dz_zhang
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
david_dz_zhang
Level 1

19-08-2019

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?

1817126_pastedImage_3.png

Accepted Solutions (0)

Answers (8)

Answers (8)

Avatar

Avatar
Give Back 3
Employee
pulkit2304
Employee

Likes

48 likes

Total Posts

44 posts

Correct Reply

25 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 25
View profile

Avatar
Give Back 3
Employee
pulkit2304
Employee

Likes

48 likes

Total Posts

44 posts

Correct Reply

25 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 25
View profile
pulkit2304
Employee

19-08-2019

Hi,

You can add data outside of the delivery from the included box on the right of the input box (see the screenshot below)

1817283_pastedImage_0.png

Thanks,

Pulkit

Avatar

Avatar
Give Back 3
Employee
pulkit2304
Employee

Likes

48 likes

Total Posts

44 posts

Correct Reply

25 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 25
View profile

Avatar
Give Back 3
Employee
pulkit2304
Employee

Likes

48 likes

Total Posts

44 posts

Correct Reply

25 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 25
View profile
pulkit2304
Employee

20-08-2019

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

Avatar

Avatar
Give Back 3
Employee
pulkit2304
Employee

Likes

48 likes

Total Posts

44 posts

Correct Reply

25 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 25
View profile

Avatar
Give Back 3
Employee
pulkit2304
Employee

Likes

48 likes

Total Posts

44 posts

Correct Reply

25 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 25
View profile
pulkit2304
Employee

20-08-2019

Have you try something like this 'filname_ <%= vars.executionTimeStamp%>'? This is work as well.

Thanks,

Pulkit

Avatar

Avatar
Give Back 3
Employee
pulkit2304
Employee

Likes

48 likes

Total Posts

44 posts

Correct Reply

25 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 25
View profile

Avatar
Give Back 3
Employee
pulkit2304
Employee

Likes

48 likes

Total Posts

44 posts

Correct Reply

25 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 25
View profile
pulkit2304
Employee

19-08-2019

pablo.rosero

Please move this thread to Adobe Campaign Classic.

Thanks,

Pulkit

Avatar

Avatar
Boost 1
Level 1
david_dz_zhang
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
david_dz_zhang
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
david_dz_zhang
Level 1

20-08-2019

Just tried, and got below error message:

"

The delivery has failed
XSV-350122 An error occurred and the process has been stopped. SOP-330011 Error while executing the method 'PrepareTargetImpl' of service 'nms:delivery'. DLV-490017 Error while computing the output file name. SCR-160012 JavaScript: error while evaluating script 'outputScript'. JST-310000 Error while compiling script 'outputScript' line 3: vars is not defined."

Thanks,

David Zhang

Avatar

Avatar
Boost 1
Level 1
david_dz_zhang
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
david_dz_zhang
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
david_dz_zhang
Level 1

20-08-2019

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

Avatar

Avatar
Boost 1
Level 1
david_dz_zhang
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
david_dz_zhang
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
david_dz_zhang
Level 1

20-08-2019

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

Avatar

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
pablo_rosero1
Level 10

19-08-2019

Moved, thanks!