How I can automate sending CAB invitation by system itself every week

Priyanka Sadhw1
Kilo Expert

What I thought was job should run every week and send mail.

There are 2 UI action which should run 

find_real_file.png

I am looking for script in Job which can hit/click these 2 links 

May be 2 different job which pick CAB meeting record for current week and click 2 links

1)Refresh Agenda items- once we click on this , decision box like this come lets say if I press No every timefind_real_file.png

 

2)Send meeting request to attendees- next when this link is clicked- Another decision box- where I say send all.

find_real_file.png

 

1 ACCEPTED SOLUTION

@Priyanka Sadhwani one thing I noticed is that you should wrap your line 6,7 inside While loop so that it trigger notifications for all the cab meetings retrieved as part of our query. 

while(gr.next()){
 var notifiedAttendeesCount = .....................;
 ..................

}
Regards,
Muhammad

View solution in original post

17 REPLIES 17

Glad It works! Happy Coding.

 

Kindly mark the appropriate response accepted and helpful so that others can be benefited by this and this thread can be closed as solved.

 

Thanks & Regards,

Sharjeel

Regards,
Muhammad

@Priyanka Sadhwani one thing I noticed is that you should wrap your line 6,7 inside While loop so that it trigger notifications for all the cab meetings retrieved as part of our query. 

while(gr.next()){
 var notifiedAttendeesCount = .....................;
 ..................

}
Regards,
Muhammad

In Automated Job- may mails are sent than expected..it should send approx 18 mail

find_real_file.png

You are expecting 18 emails and it triggered 16 right? Can you show me the latest code?
Regards,
Muhammad

Hello,

 

Issue was with encoded query, i changed to - gr.addEncodedQuery("active=true^startONThis week@javascript:gs.beginningOfThisWeek()@javascript:gs.endOfThisWeek()");

 

Seeems Working ,  testing in progress