Manually Creating Waves through Javascript | Community
Skip to main content
payaly49057811
Level 2
Oct 21, 2021 2:18 PM UTC
Solved

Manually Creating Waves through Javascript

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.
_Manoj_Kumar_
_Manoj_Kumar_Accepted solution
New Participant
Oct 21, 2021 2:42 PM UTC

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

3 replies

_Manoj_Kumar_
_Manoj_Kumar_Accepted solution
New Participant
Oct 21, 2021 2:42 PM UTC

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

 

Translate
     Manoj     Find me on LinkedIn
payaly49057811
Level 2
Oct 21, 2021 2:54 PM UTC

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 ?

Translate
_Manoj_Kumar_
New Participant
Oct 21, 2021 2:57 PM UTC

Hello @payaly49057811 

 

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

Translate
     Manoj     Find me on LinkedIn