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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Delivery Calculated by a script

Avatar

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

Avatar

Correct answer by
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

Avatar

Community Advisor

Hi,

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

Where did you find this?

Thanks,

-Jon

Avatar

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

Avatar

Correct answer by
Level 5

Hi,

It can be used similar to the following.

1849408_pastedImage_0.png

Mostly for one time deployment of a delivery.

Thanks.