Need to add email button in RITM

suuriyas
Tera Contributor

HI Community,

 

I need to create a email button in RITM (similar to we have in inc) on click the email reply to, to subject and body needs to be populate

Subject will be short desc of the ritm and in body should have the variable details 

suuriyas_0-1751263641357.png

 

Like this i want to add email in ritm

 

How can we achieve this

1 ACCEPTED SOLUTION

@suuriyas 

it worked for me.

Since your email client template is on RITM update this line -> you should query with sys_id

    ritmRec.addQuery('sys_id', current.sys_id);
 

Output:

AnkurBawiskar_0-1751454626091.png

 

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

View solution in original post

6 REPLIES 6

@suuriyas 

add simple template.print and see if it runs and renders the text

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

@suuriyas 

it worked for me.

Since your email client template is on RITM update this line -> you should query with sys_id

    ritmRec.addQuery('sys_id', current.sys_id);
 

Output:

AnkurBawiskar_0-1751454626091.png

 

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