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

MrMuhammad
Giga Sage

Hi Priyanka,

 

If I am following you correctly, then I believe you only need server side code of the mentioned UI actions. I would suggest wrapping the server side functionality of both the UI actions inside a new script include and calling it from your scheduled job. 

I hope this will help.

 

Please mark this accepted/helpful, if applicable.

 

Thanks & Regards,

Sharjeel 

Regards,
Muhammad

Hi Muhammed,

 

As I am not good at scripting and sorry to ask such question

But i am not sure what these highlighted lines are- where Do i check this code.

find_real_file.png

 

 

So, there are three parts of the script. In the first part we have a function name ShowConfirmationPopup

find_real_file.png

This function is running on client side and generating a nice Send Meeting Notification popup with two buttons Send to all and Send to New. When you click on Send to new below function called and executes.

find_real_file.png

Above function is running on server side and it first remove the popup from the screen and trigger event which in response send notification to all the new attendees. 

If user clicks on Send to All then third function called and executes.

find_real_file.png

This function is also running on server side and it triggers event that send notification to all the attendees. 

In your case if you write a scheduled job that runs on server so you cannot leverage client side code (first function) rather you can only use next two functions that is running on server side and supported by Scheduled job. 

I hope this will help you get an idea of how UI action is working and how you can leverage the script in job. 

Please mark this accepted & helpful, if you applicable.

 

Thanks & Regards,

Sharjeel

 

Regards,
Muhammad

Hi Sharjeel,

I cant see event -sn_change_cab_notify_all_attendeesfind_real_file.png