function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Basha sk 16Basha sk 16 

how can i restrict the users for deleting the opportunity team members in opportunity related list ?

Hi All,

 Could anyone please help on this will be appreciate

  How can i restrict the users for deleting the opportunity team members in opportunity related list except the Admin?

Thanks in Advance..
Basha
anil jadhav 8anil jadhav 8
Hi Basha,

You can restrict by overriding delete button by custom button. Simply check id user = System Admin then only delete method should run.

let me know if this works.

Regards,
Anil
Basha sk 16Basha sk 16
https://developer.salesforce.com/forums/ForumsMain?id=9060G000000Xdtu#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Developer_Forums&criteria=OPENQUESTIONS&id=9060G000000XdxmQAC