Skip to main content
Sep 5, 2019 2:01 PM UTC
Solved

Delivery Calculated by a script

Hi All

I am trying to create a simple delivery trough workflow with option Calculated by a script

I fond some script here on forum and tried to implement it but receiving an error.

My script:

Where DMxxx is a InternalName of a delivery template created in this purposes.

When try to execute I receive an error :

I need your help to figure this out. And also where can I find some more JS scripts examples?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
somasundaram_h
somasundaram_hAccepted solution
Community Advisor
Oct 31, 2019 7:40 AM UTC

Hi,

It can be used similar to the following.

Mostly for one time deployment of a delivery.

Thanks.

6 replies

Jonathon_wodnicki
Community Advisor
Community Advisor
Sep 5, 2019 9:54 PM UTC

Hi,

The 'computed by a script' field is for the delivery id, not random code.

Where did you find this?

Thanks,

-Jon

Translate
Sep 6, 2019 8:53 AM UTC

It seams that i totally miss understood the documentation.

Could you please write some useful examples for this option?

What I understood from your answer is to set vars.delliveryId = 12345

Where 12345 is id of some delivery or delivery template??

Translate
Jyoti_Yadav
Level 8
Oct 30, 2019 4:43 AM UTC

Hi,

yes it is id of some delivery.

Thanks.

Translate
somasundaram_h
Community Advisor
somasundaram_hCommunity AdvisorAccepted solution
Community Advisor
Oct 31, 2019 7:40 AM UTC

Hi,

It can be used similar to the following.

Mostly for one time deployment of a delivery.

Thanks.

Translate
CampaignerForLife
Level 5
Mar 28, 2023 10:59 AM UTC

If you ever need help, in anything (Adobe Campaign or LIFE), tell me. You're a hero, remember it.

Translate