create a report and schedule it on every Monday & Wednesday

Syed Mudassir
Tera Contributor

Hello  team

i have been assigned a task :-Create a report and schedule it on every Monday & Wednesday.

tried client script  but its not working,

how to schedule it on Specific Days.

 Kindly help with this simple script.

Thanks and Regards 

4 REPLIES 4

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Don't understand your comment about "tried client script but its not working". What has a Client Script got to do with what you are asking?

Have you tried creating a Scheduled Report for example?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Musab Rasheed
Tera Sage
Tera Sage

Hi @Syed Mudassir ,

Please go through below two useful links, if you find this hard then simply create two scheduled report one to run on Monday another to run on wednesday. Mark my answer as correct if that helps.

https://community.servicenow.com/community?id=community_question&sys_id=a925d08b1bd4f49017d162c4bd4bcb32

https://community.servicenow.com/community?id=community_article&sys_id=6e48606cdb664850d58ea345ca961957

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Aman Kumar S
Kilo Patron

Hey,

Please use following code in your condition script, after setting the Run weekly:

var getDate = new Date();
var day = getDate.getDay();
if(day == 1 || day == 3) {// monday and wednesday
   answer = true;
}
else {
   answer = false;
}
Best Regards
Aman Kumar

SumanthDosapati
Mega Sage
Mega Sage

Hi,

> Navigate to System Definitions > Scheduled Jobs

> Click on Automate the generation and distribution of a report

> Give report name and select the day when to send and whom to send.

 

Mark as correct and helpful if it solved your query.

Regards,

Sumanth