Agentic AI

garimakharb
Mega Guru

I am building a use case on agentic AI in which I have to generate a pdf without using Table name and record sys_id. 

var v = new sn_pdfgeneratorutils.PDFGenerationAPI;

// (Option) get HTML from the description field of an incident record
var gr = new GlideRecord("incident");
var html;

if (gr.get("<tableSysId>")) {
html = gr.description.toString();
}

var result = v.convertToPDF(html, "incident", "<target_sys_id>", "myPDF");
gs.info(JSON.stringify(result));

0 REPLIES 0