We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Adding previous months in subject line of scheduled reports

Akhilkumar2
Mega Contributor

Hi,

I have to schedule a report in servicenow.

I want a subject line as " Report of MM-YYYY" format

the month should be  previous months.

Any one knows the java script ,, kindly post the answer.

 

1 ACCEPTED SOLUTION

Hi Akhil,

Exactly I thought of it and tried to put that content into subject line. BUT unfortunately the subject field has a Limit of 80 characters. 😄 :D.  Can't help it there.

 

find_real_file.png

 

Thanks,
Saikiran Guduri (NOW)
(Please mark the answer as correct answer/helpful/accept the solution if it helps)

 

View solution in original post

11 REPLIES 11

Hi Akhil,

Exactly I thought of it and tried to put that content into subject line. BUT unfortunately the subject field has a Limit of 80 characters. 😄 :D.  Can't help it there.

 

find_real_file.png

 

Thanks,
Saikiran Guduri (NOW)
(Please mark the answer as correct answer/helpful/accept the solution if it helps)

 

Drew Carpenter
Tera Expert

Old thread, but I found it by googling my issue today. 
Of note,
javascript : nameOfSI();
does NOT work in the subject field of a scheduled job, in my experience today. 
The code does work in an email script called by ${mail_script:nameOfEmailScript} in the message field.