Delivery Post-processing Workflow | Community
Skip to main content
giusepped934715
June 6, 2018
Question

Delivery Post-processing Workflow

  • June 6, 2018
  • 1 reply
  • 1523 views

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:

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 4
September 30, 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