Delivery Calculated by a script

Avatar

Avatar

niksak84159317

Avatar

niksak84159317

niksak84159317

05-09-2019

Hi All

I am trying to create a simple delivery trough workflow with option Calculated by a script1827951_pastedImage_6.png

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 :

1827950_pastedImage_5.png

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

somasundaramhal

Avatar

somasundaramhal

somasundaramhal

31-10-2019

Hi,

It can be used similar to the following.

1849408_pastedImage_0.png

Mostly for one time deployment of a delivery.

Thanks.

Answers (3)

Answers (3)

Avatar

Avatar

Jyoti_Y

MVP

Avatar

Jyoti_Y

MVP

Jyoti_Y
MVP

29-10-2019

Hi,

yes it is id of some delivery.

Thanks.

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

05-09-2019

Hi,

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

Where did you find this?

Thanks,

-Jon

Avatar

Avatar

niksak84159317

Avatar

niksak84159317

niksak84159317

06-09-2019

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??