-
How to create instance of Sobject dynamically if you don’t know which sobject is going to be instantiated?
How to create instance of sObject dynamically? Normally the sObject is created like “Account a = new Account();”. But if you are in situation that you don’t know which sObject is going to be instantiated ? Means it will be decided at runtime, how you will handle it in Salesforce?
Log In to reply.
Popular Salesforce Blogs
Unleashing CRM Automation with Agentforce 2.0 and Salesforce Data Cloud
In 2025, Customer Relationship Management is undergoing a radical transformation—powered by AI and enterprise-grade data orchestration. With the launch of Agentforce 2.0, Salesforce is delivering…
Wrapper Classes in Salesforce | Here's What You Need to Know
Apex Wrapper Classes are custom classes in Salesforce that are used to hold one or more primitive data types as members. This allows for encapsulating…
System.VisualforceException: Getting content from within triggers is currently not supported
System.VisualforceException: Getting content from within triggers is currently not supported (Salesforce Visualforce Error Notification) ---------------------------- Hi All, Recently I was working on a task in…
Popular Salesforce Videos
Build Better with Salesforce Architects
A Salesforce Architect is a trusted advisor and leader who partners with business stakeholders and executives to design a vision and architecture for a solution…
Migrating from Salesforce NPSP to Nonprofit Cloud
The Salesforce Nonprofit Success Pack (NPSP) is a longstanding managed package with a user-friendly constituent management application and fundraising tool. However, Salesforce is pivoting nonprofit…
Salesforce Health Cloud – Creating Patient Relationships Not Records
Unfortunately, the gruesome truth facing the world today is the ever increasing pressure of diseases due to chronic disorders, pollution, growing age, and definitely increasing…