-
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
How to Use Salesforce to Improve Your Automobile Business?
The automobile industry is complex and ever-changing. In order to stay ahead of the competition, automobile businesses need to use the latest technology to improve…
Everything you need to know about Salesforce CRM
Even to this day, certain marketers have the main question that is spinning in their minds being “What is salesforce, precisely?”. Sure, you’ve definitely seen…
A Gift! for Salesforce Developers - Automatically convert Existing Visualforce Pages to Lightning (Beta)
Yes! that's right. It's a beautiful gift from Salesforce, giving us (developers) the ability to code in both Lightning Experience and Classic without having to…
Popular Salesforce Videos
Contact Deletion in Salesforce Marketing Cloud
Cameron Robert from Datarati talks through how the Contact Delete function works, how to use it, and a practical demo of how to build a…
Salesforce Guide to Sharing Architecture
The Salesforce sharing model is an essential element in your organization's ability to provide secure application data access. Therefore, it's crucial to architect your sharing…
How To Set Up A Site On Salesforce | Salesforce Development Tutorial
Learn how to set up a site on Salesforce. This tutorial will cover the following points - 1. Create Public Websites Choose a branded URL…