0

I store attachments in a Notes document and based upon the field value of a parent document I would prevent that users could user the ?DeleteDocument URL option somehow.

https://www.ibm.com/support/knowledgecenter/en/SSVRGU_9.0.1/basic/H_ABOUT_DOMINO_URL_COMMANDS_4332.html

The user is registered as Author on the document containing the attachments.

What options do I have?

Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26
  • 3
    ACL- Remove the "delete documents" rights on the DB and implement your own soft delete function. I normally set a Field "Deleted" to the current timestamp and filter all relevant views with ... & deleted="" .. So the authors are still able to move things into trash... – umeli Mar 22 '19 at 14:32

1 Answers1

0

I've implemented this in two ways.

Like umeli wrote, in the ACL remove the "delete documents" rights from people, but finesse this by allowing servers to retain deletion rights.

In a CRM database I set the Database Script QueryDocumentDelete routine to assign 'continue' the value 'False'. If the user is in the Notes Client, then give them a dialog with something like "Please raise a Support Request with a justification to delete this document". Operations could then set the form field to 'Garbage' and server automation would delete the document on schedule.

In an SaaS application a soft-delete similar to the technique umeli suggests was implemented.

Robert Howe
  • 314
  • 1
  • 11