-
Trigger
trigger trigger_1 on Contact (before insert) {
List<Contact>contacts= trigger.new;
for(Contact c:contacts){
c.name='naresh';
}
}As i am trying to to execute this code but it is not executing show Field is not writeable :contact.Name
-
This discussion was modified 6 years, 5 months ago by
Naresh kumar.
-
This discussion was modified 6 years, 5 months ago by
Naresh kumar.
-
This discussion was modified 6 years, 5 months ago by
Log In to reply.
Popular Salesforce Blogs
How To Get Started With Workflow Automation? | Salesforce Guide
Automation is being embraced by businesses globally. In order to reduce employees' growing workloads and provide customers with the services they expect, it has become…
How to Leverage Customer Segmentation in Salesforce for Maximum Impact
Imagine that you're organizing an event for a group of colleagues with different interests. To make it enjoyable for everyone, you could divide your guests…
Learn How to Access Page Layout in Salesforce | Help Guide
In Salesforce, Page Layout is used to customize the page of an object record. It controls the layout of an object. It defines which fields…
Popular Salesforce Videos
Introduction to Lightning Web Components (LWC)
Why Lightning Web Component (LWC) Part 1 - Vanilla HTML5 Web Components Benefits of Web Component Pillars of Web Component Demo of Custom Element and…
Creating a To-do List with Custom Events | Salesforce Developer Quick Takes
Creating a ToDo list will show us how we can take data from one component and pass it to another. In our ToDo list component,…
Getting Started With Business Analysis | Scrum Development Model | Salesforce Tutorial
Learn all about AGILE software development and the scrum development model. 1. Introduction To AGILE Get a brief definition of AGILE and its different modules.…