- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2018 07:39 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2018 08:16 AM
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.
Thanks,
Saikiran Guduri (NOW)
(Please mark the answer as correct answer/helpful/accept the solution if it helps)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2018 08:16 AM
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.
Thanks,
Saikiran Guduri (NOW)
(Please mark the answer as correct answer/helpful/accept the solution if it helps)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 05:08 PM - edited 06-22-2023 05:09 PM
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.