-
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
Learn All About Visualforce in Salesforce
What is Visualforce? Visualforce is a framework that developers can use to create sophisticated custom user interfaces that can be hosted natively on the Lightning…
What is CRM? A Beginner's Guide to Customer Relationship Management | Salesforce
What is CRM? CRM stands for Customer Relationship Management. The meaning of CRM has changed a lot over the years. CRM is a term that was initially…
5 Things To Know Before Implementing Salesforce Sales Cloud
Salesforce Sales Cloud is a Customer Relationship Management (CRM) platform that helps enhance the efficacy of the sales team of an organization and increase sales revenue.…
Popular Salesforce Videos
Things You Should Know Before Starting Salesforce Consultancy?
Following are the things you should know before starting the Salesforce Consultancy: 1. Do the Marketing Research 2. Focus on USP The rest of the…
TrailheaDX '18 Opening Keynote - Part 3: Connect Every Experience
Salesforce TrailheaDX ’18 Opening Keynote – Part 1: Create Connected Customer Experiences TrailheaDX ’18 Opening Keynote – Part 2: Salesforce Platform Salesforce TrailheaDX ’18 Opening…
Salesforce Trailhead - Get Started with the Salesforce Mobile App
After watching this video you'll be able to: Identify the flavors of the Salesforce mobile app available to you. Log in to your Salesforce org…