Manually Creating Waves through Javascript | Community
Skip to main content
payaly49057811
Level 2
October 21, 2021
Solved

Manually Creating Waves through Javascript

  • October 21, 2021
  • 1 reply
  • 1850 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Manoj_Kumar

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

 

1 reply

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
October 21, 2021

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  | https://themartech.pro
payaly49057811
Level 2
October 21, 2021

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 ?

Manoj_Kumar
Community Advisor
Community Advisor
October 21, 2021

Hello @payaly49057811 

 

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

Manoj  | https://themartech.pro