6 risposte
Hi Anant,Greetings to you!Please try the below code, I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
I hope it helps you.Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.trigger UpdateCaseField on Case (before insert) {
for(Case c : Trigger.new){
if (c.Date_Due__c == Null) {
c.Date_Due__c = System.today() + 1;
}
}
}
Thanks and Regards,
Khan Anas