Incidents/Case Attachments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 07:13 AM
Hi Experts,
I have a question if someone could help/guide.
At the moment we have incident and case syncronized, meaning, attachments will copy to the case from the incident. However this hasn't been set so that if someone deletes an attachment on the incident it doesn't delete the corresponding attachment on the case. The good news is that I have created a flow that does this and I have tested it and it works, however, the trigger for this flow is on incident update. So someone has to physically press the update button or the save it for the case to remove the attachment on the corresponding case.
How can I configure this so that so that as soon as the user makes a change on the 'manage attachments' section it triggers the flow.
Thanks in advance for any help.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 07:21 AM
you need to have flow configured which runs on Delete on sys_attachment with condition as table name == incident or case
So then you need to query sys_attachment and find the correct record to delete for the other table.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 06:52 AM - edited 08-11-2023 06:53 AM
Hi @Ankur Bawiskar ,
Thank you so much for your reply, I really appreciate that.
Are you able to explain further as there isn't a trigger in flow designer that runs on delete (as far I am aware, still quite newbie).
I am aware that the deleted data shows on sys_audit table though.
Kind regards,
Maria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 07:12 AM
nope.
you can use business rule for this
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader