Attachment still getting attached to the case after removing from webform/record producer

Bhawesh
Kilo Contributor

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) 

Bhawesh_0-1699335120767.png

when I try to delete the attachment(new tor) its not getting removed from the attachment table.Bhawesh_1-1699335147730.png

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?

Bhawesh_2-1699335282513.png

Please suggest how to fix this.

Regards

1 REPLY 1

Knaka
Tera Expert

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!