How to get SYS_ID from attachment table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2020 12:33 PM
I have 3 attachments on catalog , all are showing same sys_id . I am trying to open one record those are downloading . i want to get sys_id of specific attachment.
Please suggest me how to get single record sys_id. i want to get sys_id of picture and which is cancelled.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2020 12:41 PM
Right click on file name and select Copy Sys ID
If my reply helped in any way, please mark it as Helpful/Correct as applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2020 12:41 PM
Hi Rushi,
Table Sys ID stores the sysID of the record for which attachments are linked i.e in your case its cat item's sysID. To copy sysID of the attachment record right click on filename and copy sys_id.
Example: Right click on file name 'picture' and then click on copy sysid.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2020 12:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2020 02:16 PM
Hi All,
I am trying to attach file on RITM , there is 3 attachments . out of 3 i want to attach only one attachment . can you please suggest , how to avoid 2 attachments .
(function executeRule(current, previous /*null when async*/) {
// Add your code here
if(current.cat_item=='8f6cbf0edbc50c105f333a0f9d96193d'){
//GlideSysAttachment.copy('sc_cat_item', '8f6cbf0edbc50c105f333a0f9d96193d', current.getTableName(), current.sys_id);
}
})(current, previous);