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
Priya MishraPriya Mishra 

validation rule to validate child object field is a perticular value or not

Hi All,

Can you please tell me how can i write a condtion on this rule.

Condition: If Work order object's field which is product object's field Operation company is having perticular value or not. if it is having perticualr value then only validation needs to run otherwise no.

Rule :AND(ISNEW(), ISBLANK( TEXT( Patient_Involvement1_MDSR__c) ),ISBLANK(  TEXT(System_Malfunction_Deficiency1_MDSR__c ) ) )

needs to add the condition in this rule itself.
This is urgent pls.

Thnaks in advance.
AnkaiahAnkaiah (Salesforce Developers) 
Hi Priya,

Can you explain clearly when is the validation rule should fire?

Thanks!!
PriyaPriya (Salesforce Developers) 

Hey Priya,

Just need little clarification to understand the requirement. 
Work Order is the child object and Product is the parent object ??
You wanna write validation rule on work order ? 
can you provide the API name of the fields (relationship field). 

give me this detail i will help you with the rule.

Thanks!

AnkaiahAnkaiah (Salesforce Developers) 
As per my understanding, you have operation_Company__c field in work order object, when this field is having value then Patient_Involvement1_MDSR__c & System_Malfunction_Deficiency1_MDSR__c should be filled.

Am I correct?

Thanks!!
Priya MishraPriya Mishra
@Ankaiah thanx for your reply i am facing some challanges to complete a trigger can you pls help me to complete that. pls '
thankyou