-
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
Invoke Apex Class From JavaScript Button in Salesforce
Introduction In this blog, we will learn how to call an apex class from a custom button or the Javascript button from the object detail…
Bric Web App - Accessing your card directory online
Bric Web App - Accessing your card directory online It's great to have business cards saved on mobile Apps like Bric App, accessed on the go…
Efficient Salesforce Documentation with Data Dictionaries in 2024
In the dynamic world of Salesforce, the management and understanding of metadata plays a crucial role in maintaining robust business processes. For teams working within…
Popular Salesforce Videos
Introduction to Journey Builder in Salesforce Marketing Cloud
Marketing Cloud's Journey Builder is a campaign planning tool that enables you to design and automate campaigns that guide customers through their journey with a…
Salesforce Apex Rest API Integration | Salesforce Integration
As you know Salesforce is an online cloud solution, we might be required to integrate Salesforce with some other third party tool. We have released…
Salesforce Developer Career Path | How to Become Salesforce Developer
Watch this video to get a good idea about the Salesforce Developer Career Path. In this video you will learn how to become Salesforce Developer.…