You need to sign in to do that
Don't have an account?

Want to prevent Deletion or Creation of Accounts in the month of January
Want to prevent Deletion or Creation of Accounts in the month of January. How can we achieve this, pls help me gys. I am new to apex.
I tried some solutions but created date is null in before Insert and addError is not allowed in after trigger. So how can we bring them both together to display an error whenever an account is going to be created
I tried some solutions but created date is null in before Insert and addError is not allowed in after trigger. So how can we bring them both together to display an error whenever an account is going to be created
Greetings!
You can achieve this by using the validation rule and please refer the sample expression as below;
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri