AttachmentCreator SOAP web service
-
- UpdatedAug 3, 2023
- 5 minutes to read
- Vancouver
- API implementation
Attach documents to records in ServiceNow by sending a SOAP message targeting the ecc_queue table.
https://instance_name.service-now.com/ecc_queue.do?WSDL
Sending in the values described in the table above will attach an Excel file to the incident table for the record located by the sys_id dd90c5d70a0a0b39000aac5aee704ae8
Security
Like all other HTTP based web services available on the platform, the AttachementCreator SOAP web service is required to authenticate using basic authentication by default. The user ID that is used for authentication will be subjected to access control in the same way as an interactive user.
To create attachments, the SOAP user must have any roles required to create Attachment [sys_attachment] records, as well as the soap_create role, and any roles required to read and write records on the target table, such as the itil role to add attachments to incident records. By default there is no single role allowing you to add attachments. You can create a role to explicitly allow adding attachments, then assign this role to the SOAP user.
File type security
You can control what file types users can attach by setting the glide.attachment.extensions and glide.security.file.mime_type.validation properties.
For these properties to apply to the AttachmentCreator web service, the property glide.attachment.enforce_security_validation must be set to true. This property is true by default.