Our accounts have inactive checkbox. When this is checked users should not be able to create new tasks/events

I tried validation rules like: (on both task and events)

AND( ISNEW(), $Profile.Name <> "System Administrator", Account.Inactive__c = true )

Users are still able to save new activities. Is this even possible with validation rules?


For this use case i would suggest using trigger validation on the child objects. In the beforeInsert context look if the related account has inactive=true then addError to prevent the insertion.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.