Attachment still getting attached to the case after removing from webform/record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 09:42 PM
I am attaching a attachment(new tor) in a record producer with the help of OOTB attachment field type then it creates a new record in attachment table as shown below(table name zz_yy)
when I try to delete the attachment(new tor) its not getting removed from the attachment table.
Once I submit the form by uploading all the documents (attachment), it is still attaching the removed attachment(new tor) to the case which should not happen?
Please suggest how to fix this.
Regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 10:31 AM - edited 11-15-2023 10:33 AM
Hi Bhawesh,
There is a system property that prevents a removed attachment from being retained in the attachments table. Can you confirm your instance has this set to true?
(glide.sc.variable.attachment.delete.v2)
Set property to true: The attachments uploaded to the attachment variable are deleted from the system if they are replaced/deleted on the form | Automatically deletes a sys_attachment record when you replace or delete an attachment from a catalog item attachment variable. |
Hope this helps!