Document Template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2025 03:26 AM
Hi
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2025 03:35 AM
I believe I answered your earlier question about UI action.
UI Action is not visible in workspace
Would you mind closing your earlier questions by marking appropriate response as correct?
Members have invested their time and efforts in helping you.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2025 03:38 AM
Hi @Ankur Bawiskar
I followed the approach you mentioned still not showing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2025 03:40 AM
I shared 2 working solutions, please respond to that question which one is not working.
It worked fine for me.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2025 03:51 AM
Visibility I've checked and creating new button also both didn't worked. It's custom workspace