-
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
Relationships in Salesforce Financial Services Cloud
Relationships. One might think that building a good relationship with Salesforce’s Financial Services Cloud would be harder than maintaining a personal relationship, but that is…
Salesforce Integration : Streamlining Administrative Processes
In the dynamic world of business and education, administrative efficiency plays a vital role. Institutions, big or small, educational or corporate, require structured processes to…
All You Need to Know About Marketing & Commerce Cloud in Salesforce
Marketing & Commerce Cloud in Salesforce Welcome back everyone; since you know about the sales and service cloud you guys must be curious about the…
Popular Salesforce Videos
Build a Discount Approval Process | Step by Step Guide | Trailhead Project
Building a robust discount approval process is the first step in getting a grip of price discounts that are eating into profit. In this video…
Salesforce CPQ: Fixing Percent of Total Calculations for Amended Quotes
Salesforce users looking to enhance their product-quoting processes can take advantage of Salesforce Configure, Price, Quote Software, or CPQ. Some features require the use of…
How to use Salesforce Data to drive producivity and greater data capture
How do you encourage and drive better quality data entry into Salesforce by Salespeople? How do you use that data to drive productivity and proactive…