This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Invoice object permission to replace document

Hello,

We are using M-Files for invoice processing, and we would like to leverage multi document to add supporting documents to invoice object.
Is it possible to give users permission to only add files? So user cannot change (delete, replace) original invoice file?

Thank you

Parents
  • Unfortunately this isn't possible with built-in options: replacing and removing files in a multi-file document is considered an edit operation, so anyone with edit rights to the document can do that. Of course these replaced/removed files can still be found in the version history afterwards.

    If you want to use built-in functionality only, I think you will need to store the invoice files as separate documents to prevent users from deleting any of them (remove the delete permission from the documents). These could, for instance, be linked to an Invoice object which binds together all the docs related to the same invoice.

    Or if you are comfortable with scripting / VAF development, perhaps a custom event handler could prevent replacing/removing files from a multi-file document. You would need to come up with some logic of who is allowed to remove files in case someone accidentally adds the wrong file.

Reply
  • Unfortunately this isn't possible with built-in options: replacing and removing files in a multi-file document is considered an edit operation, so anyone with edit rights to the document can do that. Of course these replaced/removed files can still be found in the version history afterwards.

    If you want to use built-in functionality only, I think you will need to store the invoice files as separate documents to prevent users from deleting any of them (remove the delete permission from the documents). These could, for instance, be linked to an Invoice object which binds together all the docs related to the same invoice.

    Or if you are comfortable with scripting / VAF development, perhaps a custom event handler could prevent replacing/removing files from a multi-file document. You would need to come up with some logic of who is allowed to remove files in case someone accidentally adds the wrong file.

Children