-
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
Sneak Peek: Latest Features And Updates of Salesforce commerce Cloud
With rising customer expectations in a tech-savvy marketplace, it has become critical for retailers to deliver top-shelf shopping experiences to stay relevant and competitive in…
Salesforce Marketing Cloud Segmentation Strategy in 2024
Delivering personalized marketing and campaign messaging is at the heart of engaging customers effectively in today’s digital age. The Salesforce Marketing Cloud is a world-class…
An Ultimate Guide on How to Import Data in Salesforce
Data is an integral part of an everyday business and the effectiveness of its management determines whether the business will be a success or not.…
Popular Salesforce Videos
How To Build a Kanban View Using LWC without APEX | Real-Time Project in LWC | Salesforce
In this project, you will learn 60% of the LWC. You gonna learn the following topics 1. How to create a lightning Page 2. How…
Navy Veteran Turned Solution Engineer Working at Salesforce
In this video, you know how a navy veteran turned Solution Engineer working at Salesforce. This is really inspiring for everyone. The video covered the…
Salesforce Web-to-Case in under 5 Minutes
we'll see how to make a Salesforce Web-to-Case form quickly and easily, and how to embed it in our Word press website. This whole process…