How to delete attachment in Incident from one Instance to another.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2020 05:29 AM
Hi Team
How can we delete the attachment in Incident from instance to another using Rest?
Regards,
Priya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2020 05:35 AM
Hi,
Please refer to the below video:
https://community.servicenow.com/community?id=community_article&sys_id=e0dc2665dbd0dbc01dcaf3231f961983
Product Documentation:
https://developer.servicenow.com/app.do#!/rest_api_doc?v=newyork&id=r_AttachmentAPI-DELETE
Let me know if you have any questions!!
Thanks,
-Vinay.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2020 05:36 AM
Hi,
You can refer below article link it might help you,
Please amrk the answer correct and helpful if it will helps you.
Regards,
Akshata
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2020 05:37 AM
Hi Priya,
OOB we have a way to do it. Here is the document which can help you to delete the attachment.
Create the scripted web service and you can delete the attachment using the sys_id in target instance.
In the script section of the scripted web service, you can query the incident table and check for the attachment sys_id to delete the attachment.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2024 07:01 PM
Hi Harishdasari,
Can you give me more details about that scripted web service? i wonder that how you can store the response body (attachment sys_id, table_sys_id of the sys_attachment table) after Post that attachment to target instance.