+ Start a Discussion
SiddharthSiddharth 

Cross Object Validations to check Ids of related objects should be same?

Hi All,
 
I am trying to put a validation on a custom object which has a lookup to both Opportunity and Accounts. So when I save the record, can I apply a validation rule to check that whether the selected Opportunity.Account and selected Account are same or not. Because i want to restrict a user from selecting an opportunity that belong to a different account, than seleted one. If someone can provide a sample formula of this kind it would be of great help.
 
Thanks
Siddharth
jpizzalajpizzala
Cross-object formulas are available in Summer '08.  If your org hasn't been upgraded yet, it will be this weekend.

This should solve your problem.