-
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
Transform businesses with the power of Artificial Intelligence leveraged through Salesforce Einstein
Artificial Intelligence is powering next-generation customer experiences with smart predictions, intelligent recommendations, timely automation and much more. Gartner predicts that by 2020, a staggering 85% of…
Salesforce Lightning vs Classic: How Lightning Has Proved its Worth Against Classic
Introduction Talk of Salesforce world and the answer will echo in the form of Lightning. People are going crazy behind it and even most of…
10 Essential B2B Salesforce AppExchange Apps
The Salesforce AppExchange is a great place to find essential apps to operate within the Salesforce platform. These apps provide critical features that help you…
Popular Salesforce Videos
What Is Loyalty Management in Salesforce? | Video Tutorial
In the past few years, we have come across terms such as loyalty programs and loyalty management. Let's understand the concept of loyalty management with…
What is Salesforce Integration? | Saleforce Integration Explained
Learn how to seamlessly connect different tools and data sources with your Salesforce platform. It's all about making informed decisions and gaining a competitive edge!…
Deep Dive into Salesforce Connected App
In this session, we will deep dive into Salesforce Connected app, its usage for Salesforce developers and admins, various options and configurations provided for Authentication…