-
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 5 years, 12 months ago by
Forcetalks.
-
This discussion was modified 5 years, 12 months ago by
Log In to reply.
Popular Salesforce Blogs
Introduction and How to Use Postman | Salesforce Developer Guide
Introduction Postman is a computer application it is used for testing APIs (Application Programming Interfaces). Postman sends an HTTP request to the webserver and receives…
2020 Branding Guidelines for Partners in the Salesforce Ecosystem
The Salesforce Partner Program gives the opportunity to its partners to build and grow successful businesses while delivering customer success. With this program, Independent Software…
The All-New Salesforce Service Cloud - Transforming Customer Service from Anywhere
Salesforce launched the next generation of Service Cloud, to support evolving customer service standards and deliver linked, personalized service from anywhere on a single digital…
Popular Salesforce Videos
Marketing Cloud To Become Customer Company
Leverage Marketing Cloud's ability to engage customers by delivering premium personalized experiences and building meaningful relationships with them. Contact Cyntexa to boost your business with…
How UiPath Robots Upload Files to Salesforce
How #UiPath Robots upload files to #Salesforce and assign to #Case without custom activity just RAW REST API. 0:00 Preview0:55 Intro1:20 Logic in one picture1:38…
Salesforce Live Executive Experience: UK and Ireland 2021
At Salesforce Live Executive Experience we welcomed guests in-person and virtually to enjoy enlightening content, much missed networking and a performance from Jools Holland. The…
Popular Salesforce Infographics
Boost Efficiency with Salesforce Workflow Automation
Is your sales team bogged down by busywork? Let workflow automation be your hero!Give your team the gift of time!
Benefits of Salesforce Commerce Cloud
As the online marketplace is continuously growing in the global economy, it's important to have a feature-loaded and scalable e-commerce platform. Salesforce commerce cloud is…
5 Advantages of Using The Salesforce Data Migration Tool in Your Organization
Advantages Of Using The Salesforce CRM Data Migration Services In Your Company are: Fast migration process Repetitive deployment Suitable for both novice and advanced Salesforce…