How to get current month in the Schedueld report Subject
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 01:50 AM
Hi,
We are scheduling reports for monthly and daily incidents.
In the subject of that scheduled report, we need to show the current date and month for Daily and Monthly reports respectively.
I am able to set the date for daily report but I am facing issues to show the Month in monthly report.
Can anyone please help me here.
For the Daily report, this is the subject I am setting:
javascript:"Daily Report of incidents - " + gs.now();
It will send the email as: Daily Report of incidents - 08-02-2017
Similarly I want subject as: Monthly Report of incidents - August.
How to implement this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 02:35 AM
javascript:"Monthly Report of incidents - " + new GlideDate().getByFormat("MMMM");

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 04:58 AM
Hi Navdeep,
Good Day
I have a doubt can we call it directly as mentioned below, no need to create script include? and also will it works?
javascript:"Monthly Report of incidents - " + new GlideDate().getByFormat("MMMM");
1. We used to call the script include and its function correct.
Can you explain me on this?
Thanks,
Priyanka R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 05:04 AM
Hi Priyanka,
You are right, it does not work directly on client side. I checked that later.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 05:07 AM
Yeah np!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 08:33 PM
Hi Priya,
Good Day
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thanks,
Priyanka R