-
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 Can Customizing Salesforce Help Non-Profit Organizations?
Salesforce can support every industry sector, helping companies earn more profits and achieve business growth. But what about the non-profit sector? The good thing is…
Displaying data from the related Supplier__c records on a Visualforce page that has a custom controller for the Buyer__c object
How can a developer display data from the related Supplier__c records on a Visualforce page that has a custom controller for the Buyer__c object? The…
Top Benefits of Salesforce Customization Development | All You Need to Know
As data generation is evolving, business enterprises need to leverage a CRM platform to streamline their data in an organized way. Salesforce is one of…
Popular Salesforce Videos
Salesforce Sales Engagement Mastery: Proven Strategies for Efficiency and Success
Salesforce stands as a cloud-based customer relationship management (CRM) software capable of revolutionizing sales procedures and enhancing the efficiency of internal sales representatives. This dynamic…
External File Storage for Salesforce | Learning Guide
We demonstrate how to avoid Salesforce's file storage limit by using external files. Read the article and download the sample file. https://dbservices.com/blog/external-file-storage-for-salesforce
How to Edit or Change Product Schedules in Salesforce
Use product schedules to determine the payment and delivery cycles for products that are paid or delivered over time. In Lightning Experience, customize schedules with…