function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NeptuneNeptune 

Validation rules from master to child objects

I'm currently locking a record via a validation rule in salesforce once the status has been changed to complete using this validation rule:
AND ( ISPICKVAL(PRIORVALUE(Status__c), "Completed"), NOT ($Profile.Id = "XXXXXX"))

However this validation rule does not lock the child object associated with that record.  How do I lock the associated child object?

rockchick322004rockchick322004
There is a sample in the Help & Training online doc that covers a similar scenario, it is in the Useful Validation Formulas section, under Cross Object Validation Rules: "Prevent Changing Opportunity Products on Closed Opportunities".
NeptuneNeptune
Thanks, got it.