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

SOLVED

Delivery Calculated by a script

niksak84159317
Level 1
Level 1

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?

1 Accepted Solution
somasundaramhal
Correct answer by
Level 5
Level 5

Hi,

It can be used similar to the following.

1849408_pastedImage_0.png

Mostly for one time deployment of a delivery.

Thanks.

View solution in original post

4 Replies
wodnicki
Community Advisor
Community Advisor

Hi,

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

Where did you find this?

Thanks,

-Jon

niksak84159317
Level 1
Level 1

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

Jyoti_Y
Community Advisor
Community Advisor

Hi,

yes it is id of some delivery.

Thanks.

somasundaramhal
Correct answer by
Level 5
Level 5

Hi,

It can be used similar to the following.

1849408_pastedImage_0.png

Mostly for one time deployment of a delivery.

Thanks.

View solution in original post