Trigger TaskDueDate on Task(before insert, before update)
{
for(Task t:trigger.new)
{
if(t.ActivityDate <= Date.Today())
{
t.adderror('Please enter a future date');
}
}
}
One Customer Platform to connect everything. For any Salesforce related training (Admin,Apex,Advance Apex,Web Services,Lightening). contact me at Mobile Number: +91-8050010804,9113835016 Email: grv.shukla2@gmail.com
How to pass Salesforce Certified Data Architecture and Management Designer Exam This exam was 1st architect exam for me. Its not that muc...
No comments:
Post a Comment