-
How to assign permission set in test class?
I have set OWD to private and create a permission set to give access to object. We have removed all the object settings access from the concerned profile. Previously with OWD set to private, profile based object access was there. Now all the test classes are getting failed. Error is coming in test classes that User must have Read Access to the record. So what should I do to assign permission set in test class so that my all test classes and its methods run perfectly.
Log In to reply.
Popular Salesforce Blogs
Integration Through JWT FLOW | Server-to-Server Integration | Salesforce
JWT Integration This is used for Server-to-Server Integration Scenarios. This Flow Uses a certificate to sign the JWT request and doesn’t require explicit user interaction.…
Learn About Lightning-record-form Component in Salesforce
recordForm With the lightning-record-form component, forms to add, view, or update records may be made quickly. Creating record forms with this component is simpler than…
Salesforce Consulting Services: Unlock Your Business Potential
Looking to grow your business with the power of Salesforce? Start with expert Salesforce Consulting Services. A trusted partner can help you get the most…
Popular Salesforce Videos
How to Choose Salesforce Career Path | How To Start a Salesforce Career
With most of the businesses using Salesforce finding access to talent to be a ‘critical challenge’, it’s no wonder so many people are choosing a…
Salesforce Winter'21 New Apex Features
So wait is over... In this tutorial we would discuss many new Apex Features as below : Use Safe Navigation Operator PATCH HTTP Method in…
How To Set Up Gmail With Salesforce | Salesforce Development Tutorial
Learn how to set up Gmail with Salesforce. The following points will be covered in this tutorial - 1. Lightning for Gmail Get a brief…