Skip to main content
swapnar6405
March 1, 2023
Question

How to delete the documents

  • March 1, 2023
  • 4 replies
  • 0 views

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
March 2, 2023
abhayd3663
March 2, 2023

Use one of the following to delete the document. 

1. a!deleteDocument() - Function.

2. Delete Document - Smart Service.

March 2, 2023

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
March 8, 2023

Hii Swapna

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