-
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
Why You Should Consider Investing In Salesforce Lightning
Salesforce thought of perhaps the greatest development a year ago, that is Salesforce Lightning. It is a keen instrument that encourages you to sell quicker,…
Features Your B2B Customer Portal Will Need in 2024
B2B companies are now conquering the heights of e-commerce, where providing a smooth customer experience is the only way to the top. How do you…
Difference between a Salesforce Administrator and a Salesforce Developer
Managing your business, you will definitely meet a question how to store and analyze data about your customers and their needs. Times when you did…
Popular Salesforce Videos
Salesforce Pay Expectations $$$ US and UK
Do you agree or disagree with these numbers? How do you think Mason Frank could have surveyed differently? In this video, Brad discusses just how…
Pass Salesforce Certification Exam In Your First Attempt
This Salesforce Training Video will help you understand the concepts of Salesforce and Salesforce exam so that you can pass the Salesforce exam in the…
Spring'21 Prior Value in Salesforce Record Triggered Flows - ISCHANGED IN Salesforce Flows
In this video, I'm talking about the Prior value feature in the Spring'21 pre-release that is for the record triggered flow. Pre-Release Org URL: https://www.salesforce.com/form/signup/prerelease-spring21/…