- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 02:55 AM - edited 11-23-2023 03:03 AM
Hello Community
I am trying to fill the PDF using "PDFGenerationAPI" as described in below link
and getting the response as:
Script: { "message": "No Form associated with pdf to fill. attachmentSysId: def6f8331b2af5d0b69bcbbe034bcbd3", "status": "failure" }
Anybody has faced the same problem please help me out
PDF has attached
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 03:13 AM - edited 11-23-2023 03:14 AM
@SNOW BOT The testing.pdf you are using is not a fillable PDF hence the PDFGenerationAPI is not able to fill data in it. A fillable PDF is a PDF where the fields can be edited, the PDF you shared contains the images of two text fields and can't be edited using any PDF tool. You can use https://www.sejda.com/pdf-forms to create a fillable PDF form.
Also, attaching the fillable version of your PDF, which you can use for the testing purpose.
Please mark this answer helpful and correct if it manages to address your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 01:57 AM
@SNOW BOT Unfortunately, you will not be able to update the fields names defined in PDF via ServiceNow. Fillable PDFs can be designed using any third party PDF creator like Adobe Acrobat. My suggestion for you would be to assign sample values to each field in the field map
var fieldMap = new Object();
fieldMap["text_1qjdq"] = "Roll 12345";
fieldMap["text_2lxcz"] = "John Doe";
And check which sample is populating in which field and then plan the mappings accordingly.
Since I have already addressed the issue raised by you initially, please mark my answer correct.