Block access to the "delete" button of a record in a section, depending on his state.
Hello,
I want to block access by all users in a role, to the "delete" button of a record in the Invoice section, depending on the value of his attribute "status".
Please, help me.
Like
Hello,
You can achieve your goal in a bit different way by creating a business process that will remove access rights for some user group when the Invoice has some particular status. Please read more detailed info about Change access rights element here: https://academy.bpmonline.com/documents/technic-bpms/7-12/change-access-rights-process-element
Your process can be launched by a signal when the Invoice gets its status modified to some particular value.
In this scenario the button won't be hidden but the users won't be able to delete a record.
Best regards,
Lily
ladydia,
Please note that to make this element work properly, you need to have 'Managed by records' turned on for the 'Order' object.
https://academy.bpmonline.com/documents/studio/7-12/default-permissions-detail-object-permissions-section
In case you have no such option turned on before, you will nee to set up the default rights for all employees and the access rights to the existing records will be lost. You will need also to redistribute the rights to the existing records.
Best regards,
Lily
ladydia,
Please try to create a process with Change access rights element in Order section for one record to check if it actually works in your system. If not, please contact support@bpmonline.com for further investigation.
Best regards,
Lily