In Html body I want to use related list

Vedavalli
Tera Contributor

Hi

If we're creating a notification we'll be having select variables section where there we'll be having fields. But I wanted to use my related list in my notification how can i use related list?

Vedavalli_0-1749177884914.png

Thanks in advance

6 REPLIES 6

Using document template scripts I've achieved

@Ankur Bawiskar 
do you've any idea on this

I've created a document template on incident table.
var recordId = 'a9a16740c61122760004fe9095b7ddca';(problem sys_id)
var documentTemplateId = '50e6c385db175e10727ee7dcd39619f2';
var pdfName = 'INC_Template.pdf';
new sn_doc.GenerateDocumentAPI().generateDocumentForTask(recordId, documentTemplateId, pdfName);
with this script I'm trying to pass problem record sys_id which the incident attached to generate document for the problem record . but it's showing me the 

sn_doc (GenerateDocumentAPISNC): User do not access to the record

 how to generate document for problem (I'm using incident table to populate incident fields data)
thanks in advance

@Vedavalli 

is your question about email notification or document template?

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