-
Using generic sObject to change fields of different Object types.
Hi guys,
I was trying to use the generic 'sObject' type to change the name field of any Standard or custom object in my org ( provided it has a field with API name = 'Name'). I used it as:
for(sObject a:sobj)
{
a.Name = 'Test';
}It gives the following error:
'Field expression not allowed for generic SObject'
Can anyone help me? Thanks
Log In to reply.
Popular Salesforce Blogs
The Most Important Pardot Automation Rules You Need to Know in 2023
Pardot is a powerful marketing automation platform that enables businesses to streamline their lead generation and nurturing efforts. One of the key features of Pardot…
5 Ways to Measure Customer Feedback | Salesforce Guide
As obvious as it sounds, you can only sell a product that your customers want to buy. So collecting customer feedback is crucial to measure…
10 Must-Know Tips for Aspiring Salesforce Admins
Salesforce is a powerful customer relationship management (CRM) platform used by businesses worldwide to streamline their sales, marketing, and customer support operations. Behind the scenes…
Popular Salesforce Videos
Salesforce is planning a blockchain product?
Salesforce is planning a blockchain product. That news alone would usually coincide with positive market moves, but in a diluted crypto market that isnt the…
Salesforce Beginner Interview Questions and Answers Full Length Video [2023]
Watch this video to get to know about Salesforce Beginner Interview Questions and Answers Full-Length Video [2023]. 00:00:00 Introduction 00:02:56 Sandbox 00:05:05 Process Builder 00:09:00…
Install Adobe Sign & Send Agreements For E-sign in Salesforce
Learn the steps involved in installing Adobe Sign and sending agreements for e-sign in Salesforce. This tutorial will cover the following points - 1. Install…