Delete record using rest message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2025 06:25 AM
Hi All,
Can we delete same records if its deleted in another instance using rest message?
Example : Currently we are copying incident attachments in instance2 from instance1 using rest message. Now what we want that if attachments is remove from any incident in instance1 then it should also remove in instance2 as well.
Please let me know how can we achieve this functionality using rest message?
Thanks
Pradip

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2025 09:22 AM
Yes, attachments can be deleted via the delete method. When you PUT an attachment, you need to store the sysid in instance 1 to allow you to delete the correct attachment

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2025 09:26 AM
Hi,
I guess you can create a before delete Business rule on the attachment table, that runs when a delete should happen against the incident table for example.
Have the business rule trigger the REST message to perform the action to delete the attachment on the other instance.
Have you looked at using some of the built in functions, like IDR or remote tables , instead of configuring manual REST messages to handle the sync ?