-
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, 7 months ago by
Forcetalks.
-
This discussion was modified 5 years, 7 months ago by
Log In to reply.
Popular Salesforce Blogs
The Dynamics of Development: How Salesforce Developers Drive Innovation
In the ever-evolving landscape of customer relationship management (CRM), Salesforce has emerged as a powerhouse, empowering businesses to enhance customer engagement, streamline processes, and drive…
Salesforce Admin or Salesforce Consultant?
Salesforce is a tool that can literally revolutionize your business. For salespeople, it’s a turbocharged tool that manages the entire process from lead to closed…
5 Reasons Why You Need an Customizable Idea Management Tool for Your Online Community | Salesforce
Innovation is universal; and so are ideas. As an organization, you never know when you’ll hear a great idea. In fact, no idea is insignificant.…
Popular Salesforce Videos
How to Switch your Career from Being an HR or a Recruiter to a Salesforce Developer/QA or a BA
In this video, Shrey has answered one of the most frequently asked questions about how someone who is working in HR or as a Recruiter…
How to Become a Salesforce Admin | 6-step Guide
Salesforce administrators are the backbone of any company that uses Salesforce. They are responsible for maintaining the Salesforce platform to ensure it meets the needs…
Set Up a Microsoft Exchange Service Account to Sync with Salesforce (Using Command Shell)
You can sync sales reps’ contacts and events between your Microsoft Exchange-based email and Salesforce using the Salesforce feature Lightning Sync. If you’re an Exchange…
Popular Salesforce Infographics
Salesforce Service Cloud for Better Customer Service
Service Cloud is classified as a customer support platform or customer relationship management (CRM) platform. It was designed to improve how businesses interact with their…
What is Salesforce CPQ or Configure, Price, Quote – [Infographic]
Enterprises are using various CPQ tools in order to enhance their business efficiency & revenue by engaging their sales reps in doing actual sales activities…
How to Deliver a Great Presentation at Dreamforce? [Infographic]
First of all, remember that attendees have paid good money to see you — so it's up to you to make sure they get what…