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
Jon Axel SunnehallJon Axel Sunnehall 

Possible to Use insufficient privileges error to trigger an approval process giving user access to view/edit record

A company gives very limited access to Account Record Type "Inner Circle". If a user search accounts they should be able to view a list of account including "Inner circle" accounts. If a standard user i.e. Bob click on account with Record Type "Inner Circle" the record will not be displayed by default, but an approval process should start. Administrator can thereafter choose to give Bob access to specific account or declining request. 
What the best approach to solve this problem? 
Amit Singh 1Amit Singh 1
Hi Jon, 

We can not do this with Approval Process.

Iram MalikIram Malik
Hi Jon,
You may be able to achieve this by customization. Convert your detail page to VF Page and set up the access in the apex. If the user does not have access, based on the condition or if the insufficient privileges exception occurs in the catch, call the approval process from apex. Go for it if the functionality is really required.