-
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
Best Automation Testing Training in Electronic City, Bangalore
Looking for the Best Automation Testing Training in Electronic City, Bangalore to build a high-growth IT career? Join eMexo Technologies, the Top-Rated Automation Testing Training Institute in Electronic…
Salesforce Email and Events Integration Options
In the ever-evolving digital business landscape, a robust CRM platform like Salesforce becomes even more powerful when it can seamlessly integrate with your organization's email…
How to Choose CRM for Your Organization
Organizations always prefer a single platform that is able to support all the business needs ... Organizations always prefer a single platform that is able…
Popular Salesforce Videos
Build Lightning Components with Salesforce DX
Learn how to get started with building Lightning Components, the Salesforce DX way. We'll leverage Base Components, Lightning Data Service, Salesforce CLI, Scratch Orgs, Salesforce…
TrailheaDX 2020 Opening Film | Salesforce
Now more than ever, Trailblazers are using the Salesforce Platform from anywhere in the world to collaborate, innovate, make a change, and build a brighter…
Reassign Leads using Lead Assignment Rule on Update/Upsert | Salesforce Tutorials | #SalesforceBolt
In this vlog, we will do some work around Assignment Rules. As you are aware Assignment Rule can be trigger on Insert actions. Either it…