-
Test Database.query
We have our managed package and we need to install in another org. And there are many custom fields which already exist there. So we cannot create the custom field in our org because it will cause the duplicate issue. So how should i write the test method to cover the dynamic query custom fields?
I am using dynamic query to query records like
List<Account> accList = Database.query('select Name,customfield__C from Account');
as customfield__C is not present in my org it's value getting retrieved dynamically , so how to give customfield__C value in my test class.
Log In to reply.
Popular Salesforce Blogs
Salesforce Data Migration - Guide to the Best Practices
Movement is a one-time action; when the information is stacked into the Salesforce organization, the relocation task is finished. So it is critical to keep…
An Introduction To Salesforce Flow Basics
The Power of Automation Over time, most companies set up a set of practices that can meet different business needs. These methods are usually unique…
Einstein Activity Capture | The Ultimate Guide
Einstein Activity Capture Salesforce Einstein Activity Capture is a powerful tool that enables businesses to keep track of their customer interactions and activities. It is…
Popular Salesforce Videos
Salesforce Live Executive Experience: UK and Ireland 2021
At Salesforce Live Executive Experience we welcomed guests in-person and virtually to enjoy enlightening content, much missed networking and a performance from Jools Holland. The…
Handle Events in Lightning Web Components | Salesforce Tutorial
Watch this video and learn about the following: Create an app that includes multiple components. Describe the file structure of a complex component. Handle events.
Pardot Engagement Studio | Salesforce
Learn how to use Pardot Engagement Studio to engage and attract prospective students. Do let us know in the comment section if you have any…