You need to sign in to do that
Don't have an account?
sravan teja 2
Hi , In a trigger i need to update a custom field based on other custom filed
Senario: when a value is inserted on AMOUNT custom field, COUNTER custom filed should be automatically get incresed. i'm new to salesforce and please guide me.
Object : Account
Custom fields : amount,counter
Thanks in advance
Object : Account
Custom fields : amount,counter
Thanks in advance
Below is the trigger for that:
All Answers
Hi Sravan,
Please confirm In counter field, the value will be shown as 1,2,3 and so on or the value of Amount will be there in counter field
Below is the trigger for that:
Hi Sravan,
Trigger.oldMap.get(acc.Id).Amount__c giving the previous value of Amount__c and acc.Amount__c giving the current value.
So I am doing comparison.
Please mark it as the best answer if this works for you.
Thanks you so much deepak..