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

Delivery Calculated by a script

Avatar

Avatar
Validate 1
Level 1
niksak84159317
Level 1

Likes

2 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
niksak84159317
Level 1

Likes

2 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
niksak84159317
Level 1

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
Validate 1
Level 4
somasundaramhal
Level 4

Likes

73 likes

Total Posts

71 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Shape 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 4
somasundaramhal
Level 4

Likes

73 likes

Total Posts

71 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Shape 1
Boost 50
Boost 5
Boost 3
View profile
somasundaramhal
Level 4

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
Boost 50
MVP
Jyoti_Y
MVP

Likes

87 likes

Total Posts

123 posts

Correct Reply

55 solutions
Top badges earned
Boost 50
Shape 1
Boost 5
Give Back 5
Give Back 3
View profile

Avatar
Boost 50
MVP
Jyoti_Y
MVP

Likes

87 likes

Total Posts

123 posts

Correct Reply

55 solutions
Top badges earned
Boost 50
Shape 1
Boost 5
Give Back 5
Give Back 3
View profile
Jyoti_Y
MVP

29-10-2019

Hi,

yes it is id of some delivery.

Thanks.

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

969 likes

Total Posts

1,090 posts

Correct Reply

513 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

969 likes

Total Posts

1,090 posts

Correct Reply

513 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
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
Validate 1
Level 1
niksak84159317
Level 1

Likes

2 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
niksak84159317
Level 1

Likes

2 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
niksak84159317
Level 1

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