The Zurich release has arrived! Interested in new features and functionalities? Click here for more

A way to attach a file to the attachment field on the form

dmitry1234354
Kilo Explorer

Hello All,

I work on a framework that tests our instance of ServiceNow using REST API and Selenium framework. In my case I have a form in Catalog Items with a mandatory attachment field. To test that form I have to attach a file and than proceed the form further. I know that there is REST API for making attachments on the records in the table, but is there a way to make an attachment on the form using the REST API?

Thank you.

6 REPLIES 6

dravvyramlochun
ServiceNow Employee
ServiceNow Employee

Hello Dmitry,



You can use the attachment API to achieve this. Please have a look at Attachment API   and you should be able to achieve this.


Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Have you been looking into the Automated Test Framework(ATF) that came with Istanbul?


docs: Automated Test Framework          


I've been looking at using ATF to add an attachment to an incident form and haven't found a way. Any ideas on how to do it?