Need to show true checkbox on notification

Nivedita9
Tera Contributor

Hi All,
I have few checkbox on catalog task form. Where assign to person has to check those boxes if user has returned those items.
The checkbox which are true needs to be shown on notification. Attaching the screenshot for reference:find_real_file.png

So in the notification it should come as:
Hardware Returns:
Mobile Phone,

Bag/Pack
Can anyone help??

1 ACCEPTED SOLUTION

since your notification is on sc_task

use this

var reqitem = new GlideRecord('sc_req_item');
reqitem.addQuery("sys_id", current.request_item);
reqitem.query();
if(reqitem.next()) {
	template.print("Hello3");

	// add here logic to check variable value is true then only print
	
}

I already shared link for solution above

Regards
Ankur

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

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

your notification is on which table?

you would require email script for this to get those checkbox variables and if true then only print in email

did you start with it? where are you stuck?

Regards
Ankur

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

I'm think to create notification on catalog task.
But not understanding how shall I start?
Can you help me @Ankur Bawiskar 

Hi,

create notification on catalog task and then you can use email script

solution here

Pulling Variables to Email Notification

Regards
Ankur

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

Hi @Ankur Bawiskar 
One more thing those checkbox ar hidden on RITM form. Only visible to sc_task form.
So email script should be same?
Shall I glide record to ('sc_req_item') table?