+ Start a Discussion
Mak OneMak One 

I want to access filed of Parent Record in Validation Rule for Task

In Task creation for Opportunity I have to make sure that only certain picklist values are available (or we can restrict to Save Task from Valiation Rule on Task) in Custom Pricklist field for certain Stage field values in Opportunity.

Now, from Task in Validation Rule we can get only Parent ID (WhatID) which will be ID of Opportunity.
Now, how I can get Stage field of Opportunity in Validation Rule.
I want something like:

If (WhatId.Stage = '4 Handover', Category__c!='Order', false)
Best Answer chosen by Mak One
Nitin PaliwalNitin Paliwal
You cannot access in the Validation rule, you can use trigger to provide necessary validation as an alternative to your issue.