-
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, 6 months ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
Apex Trigger Scenarios | All You Need to Know
Here's a list of Apex trigger scenarios questions for practice, covering beginner to intermediate levels and Intermediate to Advanced levels: Beginner Level Intermediate Level Advanced…
Salesforce and ERP Integration - Learn All About It
As technology is advancing in every domain of business, many related problems or issues are rising simultaneously. Every enterprise or organization wants to run its…
Salesforce Tips and Tricks for Data Integration
User experience is one of the most important aspects of any prominent business endeavor. However, to keep your consumers satisfied with your service or product…
Popular Salesforce Videos
Time-based Workflow Rules In Salesforce | Salesforce Tutorial
Learn all about time-based workflow rules in Salesforce. This tutorial will cover the following points - 1. Create A Workflow Rule Learn how a workflow…
Handle Events in Lightning Web Components | Salesforce Tutorial
Watch this video and learn about the following: Create an app that includes multiple components. Describe the file structure of a complex component. Handle events.
Salesforce Field Service Implementation
The possibilities for building a custom field service implementation are nearly endless when considering all the offerings in Salesforce Field Service. This 8-step guide provides…
Popular Salesforce Infographics
Top Salesforce Trends For 2023
When it comes to managing customer databases, Salesforce is leading the pack. Companies are increasingly relying on this powerful tool for its unrivalled flexibility and…
What Can Salesforce’ Non Profit Success Pack Provide You With?
The Nonprofit Success Pack NPSP (formerly known as "Nonprofit Starter Pack) is a set of managed packages developed and maintained by Salesforce.org and made available…
What is Salesforce Customer 360?
According to our State of the Connected Customer report, 76% of customers expect consistent interactions across departments. However, 54% say it often feels like sales, service,…