function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi devendra
Could you tell me in the same way for after insert and after update
Thanks in advance
Before specifies the code which executes before record commits to the database.
Before Insert - In Insert Case, the record is not present, you create a new record using Insert operation.
Before Update - In Update Case, the record is already present in the database and you are trying to update it.
Hope this helps :)
Thanks,
Devendra
All Answers
Before specifies the code which executes before record commits to the database.
Before Insert - In Insert Case, the record is not present, you create a new record using Insert operation.
Before Update - In Update Case, the record is already present in the database and you are trying to update it.
Hope this helps :)
Thanks,
Devendra
trigger AccountAddressTrigger on Opening__c (before insert, before update) {
for(Account objAccount : Trigger.New){
objAccount.Address__c = objAccount.MailingStreet + ' ' + objAccount.MailingCity + ' ' +objAccount.MailingState + ' ' +objAccount.MailingPin;
}
}
Here Address__c is the custom field and it needs to store whole address which is coming from different address fields.
So I need to use before insert and before update and Address__c should get populate with whole adress.
Hope this helps :)
Thanks,
Devendra
Hi devendra
Could you tell me in the same way for after insert and after update
Thanks in advance