-
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, 11 months ago by
Forcetalks.
-
This discussion was modified 4 years, 11 months ago by
Log In to reply.
Popular Salesforce Blogs

How to Integrate Data from Third-party Systems with your Salesforce Org?
This article is prepared by our Salesforce Certified Administrator Veronika Klimova. Certainly! Jitterbit, Zapier, and MuleSoft are three popular platforms for data integrations, each with its own strengths and…

Salesforce Automation Tools Overview
A Salesforce Implementation can help migrate all your customer, sales and interactions data into one place and standardize business processes. This allows all sales staff…

Working with Apex in JetForcer IDE: Offline validation, quick-fixes, refactorings and powerful code completion.
If you haven’t yet tried the newly-released JetForcer 1.0, now definitely is the time for that. Let's take a closer look why it is a…
Popular Salesforce Videos
Guided Selling with Salesforce CPQ
Do you know how to set up guided selling in Salesforce CPQ? In this demo video, we'll show you three easy steps to set up…
How to implement Salesforce shield in 20 min?
Many organizations have “bought” Salesforce Shield but haven’t implemented it yet, due to some complexities that come along with security-related products. Pete and Brian will…
How to Report on the Reports in Your Salesforce Org
Do you want a list of all the reports in your Salesforce org? Would you like to see a list of reports and the last…
Popular Salesforce Infographics

Salesforce Field Service: Power Up Your Field Operations
Salesforce Field Service, commonly known as Field Service Lightning (FSL), is the extension of Service Cloud that provides a unified view of workforce management. In…

5 Advantages of Using Salesforce for Your Business
Salesforce is a customer relationship management (CRM) platform that offers a wide range of features and benefits for businesses of all sizes. Here are five…

Salesforce Marketing Automation: Sales or Marketing Tool? [infographic]
Marketing automation has a hidden talent. Despite being marketed for years as a tool for, well, marketers, automation is changing the shape of the modern…