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
omarjmansour.ax1111omarjmansour.ax1111 

Workflow Rule on a Child Object to Use Criteria from the Parent (Master-Detail Relationship)

 

Hi Everyone -

 

I have a custom object with a master detail relationship to the opportunity object. I would like to create workflow rules on the custom object that uses criteria from the Opportunity. I can build the criteria on the workflow, but the workflow is not firing...

 

Here is what my criteria looks like:

 

AND(
ISPICKVAL( Project_Leader__c , "Joe Smith"),
ISPICKVAL( Opportunity__r.StageName , "Closed Won")
)

 

The first criteria is from the custom object and the second is from the opportunity.

 

1) Can I write criteria for workflow rules in the manner described above?

2) If so, what are the limitations?

 

Thank you!

Best Answer chosen by Admin (Salesforce Developers) 
V1nitV1nit

A workflow rule cannot make use of 2 different objects at a time.

The only way to do this is using trigger

All Answers

V1nitV1nit

A workflow rule cannot make use of 2 different objects at a time.

The only way to do this is using trigger

This was selected as the best answer
omarjmansour.ax1111omarjmansour.ax1111

Thank you!