Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
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();

 


     Manoj
     Find me on LinkedIn

View solution in original post

3 Replies

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();

 


     Manoj
     Find me on LinkedIn

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 ?

Avatar

Community Advisor

Hello @payaly49057811 

 

Yes, splitdelay will take care of that 1 hour gap.


     Manoj
     Find me on LinkedIn