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
Shohrat MuhamovShohrat Muhamov 

Visualforce button that has a write access

Hello,


I have created visualforce page button with standard Lead controller and custom extension controller. I am trying to populate a field on lead record that are not owned by running user. Salesforce returns insufficient privileges error when i try to use that button as a regular user. My extension class is in System mode and I have given the edit access on profile. But I am still getting same error message. Can anyone help me with it please?
Britto Fernandez 2Britto Fernandez 2
Could you please share debug log, keeping log level at finest. Thanks.
Shohrat MuhamovShohrat Muhamov
There is no log generated, I ony get below error message. 

Thank you,


User-added image