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,If you want to update a field value on an already existing record use the following code snippet:
trigger Trigger_Name on Object_Name(before update) { if(Trigger.isbefore && Trigger.isUpdate){ for(Object_Name objInstance : trigger.new) if(objInstance.Field_Name__c == '2016Q2') objInstance.Field_Name__c = '2016Q02'; } }
Note: Above code snippet will be fired only for the record that is being updated.Let me know if you face any issue.Regards,Sagar Wahal
Hi,
If you want to update a field value on an already existing record use the following code snippet:
Note: Above code snippet will be fired only for the record that is being updated.
Let me know if you face any issue.
Regards,
Sagar Wahal