You need to sign in to do that
Don't have an account?
carmilyn.c martin
Trigger on Date
I need to create a trigger where (tot.Date_vod__c < (THIS_YEAR(system.today())-1-11))
I want to avoid users from deleting TOT with Date_vod__c that is less than Jan 11 of this year
I am not sure if I am doing it correctly.
I want to avoid users from deleting TOT with Date_vod__c that is less than Jan 11 of this year
I am not sure if I am doing it correctly.
Try using a simple trigger like this.
The above code basically checks compares the date on the record to Jan 1 of this year. If the record has a date thatless than that then it will result in error.
Hope this helps!
AM
All Answers
Try using a simple trigger like this.
The above code basically checks compares the date on the record to Jan 1 of this year. If the record has a date thatless than that then it will result in error.
Hope this helps!
AM