-
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, 4 months ago by
Forcetalks.
-
This discussion was modified 6 years, 4 months ago by
Log In to reply.
Popular Salesforce Blogs
Salesforce Automation Testing: Best Practices to Follow
Salesforce comes with multiple OOTB (out-of-the-box) features that are customizable. Just like any complex, integrated solution, quality assurance and testing are important for Salesforce. The configuration…
REST API in Salesforce | The Ultimate Guide
What is REST API? REST stands for Representational State Transfer, which is a web architecture that uses HTTP protocols to access and manipulate resources. REST…
What does a Salesforce Professional Do? Exploring Salesforce Roles and Profiles
There are a number of articles and blogs out there discussing the demand, the salaries, or the need for certification for a Salesforce professional. But…
Popular Salesforce Videos
Pardot vs Marketing Cloud: What's The Difference?
There are different functions of each Salesforce product according to the use cases. Many businesses get confused between Salesforce Pardot and Marketing cloud. Pardot is…
Salesforce Lightning: Custom Theming and Branding
As part of myLightning, Custom Theming and Branding for Lightning Experience lets you customize key styling elements, such as the global header color, brand image,…
Introduction to Programming | Live Salesforce Development
Learn Salesforce development from start to finish for free. Want to take your Salesforce Knowledge to the next level? Want to learn advanced Salesforce admin,…
Popular Salesforce Infographics
Boost Sales and Marketing with Salesforce Einstein 1
Salesforce Einstein 1 is a suite of artificial intelligence (AI) tools designed to enhance business efficiency and decision-making. Around 80% of customers expect companies to…
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…
Know 5 Reasons to Use Salesforce for Your Business
Salesforce is a customer relationship management (CRM) platform that can be used by businesses of all sizes to manage and analyze customer interactions and data.…