-
Why generic data type is not used to store data on some specific object in Salesforce?
Sobject is a generic data type. But if we insert some value in the account object through apex, by using Sobject as data type in place of account data type, we get an error message. why we cannot use sObject in place of any object name?
eg.
sObject add= new Account (name='ram'); //it shows error
Account add=new Account (name='ram'); // this line executed.
-
This discussion was modified 6 years, 6 months ago by
Forcetalks.
-
This discussion was modified 6 years, 6 months ago by
Log In to reply.
Popular Salesforce Blogs
Using Salesforce Commerce Cloud for an Online Retail Business
The e-commerce platform has completely transformed the way of shopping for people. What could be better than being able to scroll through the varieties and…
Introduction on Salesforce and HIPAA Compliance
HIPAA stands for ‘The Health Insurance Portability and Accountability. As per HIPAA, it was established in the year 1996 that all the data related to…
8 Advantages of Using Salesforce For Small Businesses and Startups
Salesforce is one of the most powerful cloud-based CRM platforms. A robust yet efficient CRM system – one that meets all the field-specific needs of…
Popular Salesforce Videos
When Salesforce is Down/Offline - Keep on Going With Zoho
Wtahc this video and learn how to keep your organization moving when Salesforce is DOWN or OFFLINE. Do let us know if you have any…
LWC Interview Questions -1 ( Freshers)
In this video, Kumar Salesforce provides a list of LWC Interview Questions that may be helpful for those who are just starting out. Watch this…
Introduction to Creating and Using Salesforce Reports
Every Salesforce user can benefit from working with Salesforce Reports. We often say that one of the best Salesforce features is that "...even mere mortals…
Popular Salesforce Infographics
What You’ll Get with the Salesforce MVP Infographic
We scanned the profiles of Salesforce MVPs, both past and present, searched high, low, near and far to provide insights into what it specifically takes…
The Basics of Lead Nurturing [INFOGRAPHIC]
Qualifying leads no longer has to be a tedious task for your team. Lead nurturing campaigns automate the entire process for you. This means your…