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

Manually Creating Waves through Javascript

Avatar

Level 2

I am trying to setup calendar based waves on through JavaScript just before winning SL email. Does anyone knows how to setup calendar based waves for 4-5 days (one day per hour distribution)?

 

Basically I am trying to throttle Winner SL email but i am using standalone email delivery so don't have option to throttle audience on delivery itself

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @payaly49057811 

 

You can use this code:

 

var delivery=nms.delivery.load('DELIVERY_PK');

delivery.scheduling.waves.enabled=1;

delivery.scheduling.waves.mode=0;

delivery.scheduling.waves.splitDelay=86400;

delivery.scheduling.waves.splitSize="20%";

delivery.save();

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @payaly49057811 

 

You can use this code:

 

var delivery=nms.delivery.load('DELIVERY_PK');

delivery.scheduling.waves.enabled=1;

delivery.scheduling.waves.mode=0;

delivery.scheduling.waves.splitDelay=86400;

delivery.scheduling.waves.splitSize="20%";

delivery.save();

 

Avatar

Level 2

Thanks Manoj. This is working for only wave but for multiple waves , for example 

 

10/21 8 AM - 20%

10/21 9 AM - 20%

10/21 - 10 AM - 20%

10/22 - 8 AM - 20%

 

Does that code work in above scenario ?