add a record to sys_attachment table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2016 04:59 AM
Hi,
How do I add a record to the sys_attachment table?
Thanks,
Nikita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2016 05:12 AM
That table is used to store attachments for records in ServiceNow. If you attach a file to say an incident it will be stored there along with a pointer back to the incident table and the sys_id of the incident.
Please provide more detail on your question if the above explanation doesn't make sense.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2016 05:17 AM
Hi Nikita,
Basically ServiceNow stores attachment metadata information in sys_attachment table. Actually data of the attachment is chunked and stored in sys_attachment_doc table. I would suggest you to use OOB methods to create attachments than creating direct records.
You might find below thread useful.
AttachmentCreator SOAP Web Service - ServiceNow Wiki
Thanks
Srinivas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2016 01:02 AM