How to get current month in the Schedueld report Subject

vspk
Giga Expert

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

15 REPLIES 15

navdeep_singh
Giga Guru

javascript:"Monthly Report of incidents - " + new GlideDate().getByFormat("MMMM");


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



Hi Priyanka,



You are right, it does not work directly on client side. I checked that later.


Yeah np!


PriyaRanji
Tera Guru

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