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

Delivery Post-processing Workflow

Avatar

Avatar
Give Back
Level 1
giusepped934715
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile

Avatar
Give Back
Level 1
giusepped934715
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile
giusepped934715
Level 1

06-06-2018

Hi All,

I'm trying to use the post-processing workflow to update the Recipient delivery logs after a delivery is generated.

Using the "post-processing" function on the Routing Account I selected a workflow to use:

1502915_pastedImage_0.png

The workflow is called anytime a Direct mail delivery is generated (great) and I can see the logs of the workflow.

I would like to have into the WF the Delivery Primary Key to manage the updates, how can I do that?

Thanks in advance,

Giuseppe.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
MVP
Florian_Courgey
MVP

Likes

93 likes

Total Posts

87 posts

Correct Reply

19 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 1
View profile

Avatar
Springboard
MVP
Florian_Courgey
MVP

Likes

93 likes

Total Posts

87 posts

Correct Reply

19 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 1
View profile
Florian_Courgey
MVP

30-09-2020

Hi Giuseppe,

You can get the Delivery id in the Post-Processing workflow with "vars.deliveryId". The below code might help you:

logInfo('vars.deliveryId:', vars.deliveryId); // will display "vars.deliveryId: 999999"
var delivery = NLWS.nmsDelivery.load(vars.deliveryId);
logInfo('delivery.label:', delivery.label); // "My Delivery Label"

Also, you will find a lot more details in this blog post about Delivery Post-Processing Best Pratices.

Best

Florian