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
salesforce sfdxsalesforce sfdx 

Hello team, Need a Suggestion For Approval process to Bypass

Scenario:
 User 1 :full access profile
User 2 : Limited access Profile with limited access license.

Step 1:Once the User 1 , submits the Record for Approval to User 2,
Step 2: User2 gets the Record to approve or Reject or Reassign
Step 3: User2 clicks on the Approve button and add an comment as approved.
Step 4: It was throwing an errror that "user dont have permissions to Perform Dml Operation on that Particular Custom object.

Need to Bypass that error,what will be the solution for it.  any custom functionality.

Please provide the Solution if you have faced the same scenario

Thanks
Sfdx
Sai PraveenSai Praveen (Salesforce Developers) 
Hi ,

Does the user2 dont have access to edit the record or dont have edit access for the field which you are updating in field update ?

Thanks,
 
salesforce sfdxsalesforce sfdx
Hi, user2 dont have access to edit the record , as the sugesstion we need to by pass it .and should not get the alert .
as per the solutions some developers suggested to create a custom approval button and use the email services.
Can you suggest anything
Thanks
Salesforce TechieSalesforce Techie
create a flagcheckbox and set true and in the approval process check if the flagcheckbox is false then it will not enter the approval process. in all related references also you may have do this change