how to use parm 2 in email script and fetch data

Priya75
Tera Contributor

Hi All,

I have a scheduled job from where i am triggering an event and sending parm2,

i want to use this parameter in my email script to glide data from incident table.

 gs.eventQueue("eventname","current", parm1, parm2);

now i want to use parm2 which contains sys id of incidents, in my email script to glide the incidents and get their category, state and configuration item and display it in tabular format.

 

Incident Configuration Item CategoryState
inc1234567xyzxyzxyz
inc4546567abcabcabc
2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Priya75 

in email script simply use this to access the value of parm2

var myValues = event.parm2;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Priya75 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader