-
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 5 years, 2 months ago by Naresh kumar.
- This discussion was modified 5 years, 2 months ago by Naresh kumar.
Log In to reply.
Popular Salesforce Blogs
A Guide To Writing Your Salesforce Administrator Resume
A Salesforce Administrator ensures companies experience the full potential of Salesforce and its technology. With an average starting annual salary of $79,000 and a 400% growth…
Get Access Token From Google Calendar API Through Postman | Salesforce Developer Guide
Get Access token from Google Calendar API through Postman While working with integration with third parties, it is very very important to get the access…
Popular Salesforce Videos
Work With Custom Lightning Components | Salesforce Tutorial
Creating a custom Lightning component requires programming skills. Or, you can install an existing Lightning component from the AppExchange. You can create a custom Lightning…
Salesforce Territory Management
This short video gets you started in setting up sales territories for your team. With sales territories, you can keep track of which sales reps…
Salesforce Confetti | Salesforce Tutorial
In this video, we show you how you can add a confetti cannon to existing paths or create them from scratch. Surprise your staff and…