
Salesforce Shots: Test Data Factory in Salesforce
TestDataFactory/TestUtility is a container that is an org-wide special apex test class & excluded from the organization code size limit. In addition, it’s annotated with @isTest. Use case: In test classes, we used to create multiple test data records (Account, Contact, Opportunity, etc) for the testing apex class. In this scenario, we can use the …
Continue reading “Salesforce Shots: Test Data Factory in Salesforce”

Salesforce Shots: No-Code Flow Testing (Beta)
In Salesforce summer-22 release, salesforce launched View Tests (beta) which will help you to test Record Triggered Flow. In the Salesforce ecosystem, everyone knows Flow is the future of declarative automation tools. It will replace the existing workflow & process builder soon. After saving Record-Triggered Flow, click the “View Tests (beta)” button where you can …
Continue reading “Salesforce Shots: No-Code Flow Testing (Beta)”

Salesforce Shots : Add multiple Recipients with different roles dynamically in Conga Sign URL
Problem Statement: How to add multiple Recipients with different roles dynamically in Conga Sign URL? Solution: We can add multiple Recipients with roles and change the role while sending the mail in the Conga Sign screen. But if we need automatic role assignment in the Conga Sign, we can add multiple Recipients with roles while …

Salesforce Shots : Test class for Revoke Portal User Access in Apex Batch Class
While writing Test class for this scenario the biggest challenge we faced was, “isPortalEnable” field of the “User” object is not editable, to make it we need to take care of the below points: We need to create Two individual users as test data one user as System Administrator and another one as Portal User. …
Continue reading “Salesforce Shots : Test class for Revoke Portal User Access in Apex Batch Class”