-
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 4 years, 7 months ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
Salesforce Artificial Intelligence for Sales Cloud to Increase Productivity and Growth
Salesforce AI for Sales Cloud, as well as additional capabilities like an embedded assistant copilot for Sales, allow every sales professional, leader, and operations team…
Pardot Audit: How and Why It is Essential to Conduct One Today | Salesforce
Pardot is a powerful B2B marketing tool that allows marketers to run and manage multiple campaigns with ease. It is capable of automating processes and driving…
All You Need to Know About Database Class Methods to Perform DML Operations
In this blog, we will discuss Database class methods to perform DML operations. So let's get to the topic. Apex contains the built-in database class.…
Popular Salesforce Videos
Mastering Apex Collections | Salesforce Tutorial
Working with collections like List, Map and Set is part of the day’s routine for Apex developers. While their basic use is straightforward, there are…
Salesforce Winter Release '22 Highlights
Watch this webinar video to learn about new and improved features and how you can take full advantage of the latest enhancements. Let us know…
8 Steps to Launch Your App on Salesforce AppExchange
AppExchange is the largest business app store in the world, with over 4,000 apps and millions of users. In this video, we will guide you…
Popular Salesforce Infographics
Benefits of Using WhatsApp For Better Customer Engagement
WhatsApp makes businesses more interactive and reliable. Customers can directly connect with a company, clear their doubts, and leverage a connected experience. 5 million business…
Salesforce: A Powering Business Of All Sizes
Salesforce is a cloud-based software that helps businesses track and manage their interactions with customers and potential customers. More than 150,000 companies worldwide use Salesforce.…
How Salesforce Outsourcing Can Help Your Business Grow
We all know how beneficial is Salesforce for any business but people still wonder if it is beneficial to go for Salesforce Outsourcing services. This…