Skip to main content
swapnar6405
Known Participant
Mar 1, 2023 11:29 PM UTC
Question

How to delete the documents

Hi,

I am fileUploadField() to uploaded the document in a specific folder and saving the documentId in the database under one of the field/column.

When I try to perform delete functionality against the database record, I am using "Delete from Data Store Entities" smart service.

When I delete a database record, I would like to delete the corresponding document which is linked to the database record.

How can I achieve this. Any advises please.

Thanks.

4 replies

Participating Frequently
Mar 2, 2023 12:29 AM UTC
abhayd3663
Brainy
Mar 2, 2023 4:03 AM UTC

Use one of the following to delete the document. 

1. a!deleteDocument() - Function.

2. Delete Document - Smart Service.

Inspiring
Mar 2, 2023 4:28 AM UTC

In process model before your delete from Data Store Entity smart service

1. add a delete document smart service and map your document Id to this smart service. 

scadeas5901
New Participant
Mar 8, 2023 10:08 AM UTC

Hii Swapna

Please try using the "Delete Document Smart Service" rather than using the above mentioned smart service.