-
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
How to Pass the Salesforce Certified Administrator Exam on Your First Try
The Salesforce Certified Administrator Exam empowers professionals to harness Salesforce’s full potential, ensuring organizations streamline CRM operations and drive growth. Recognized as the industry’s premier…
What is Salesforce Marketing Cloud Email Studio in 2024?
In the ever-evolving landscape of digital marketing, personalized communication is the key to capturing the audience’s attention. Salesforce Marketing Cloud Email Studio stands at the…
Introduction To Salesforce Lightning Migration – Part 1
Technology has taken app development to a new level, making it more accessible than ever. One such technology, best known for its ability to empower…
Popular Salesforce Videos
Saving Journey History in Marketing Cloud
We explore how to leverage Marketing Cloud REST API and its automations to save all the journey history data for your organization. Includes a video…
Salesforce Interface Sends a Command With Parameters to UiPath Assistant Using JavaScript
Salesforce interface sends a command with parameters to UiPath Assistant using Robotjs Code: https://github.com/cristinegulescu/startUiPathFromSalesforce/blob/master/SalesForceLocal.txt
Prepare for Your Salesforce Pardot Implementation
If you're preparing for your Pardot implementation, you've come to the right place! Pardot implementation is a complex, multi-step process. In this video, we will…