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 for the cross obejct

I have two obejct call log and login when i am inserting the data into the call log object using the csv upload i have a field called username we are inserting this field data from the csv file but before insertion this
username field data has to be validated if this username is matched with the login data it has to insert the record otherwise error to be display.

i have written a validation on the username field like below but this is giving the error for the condtion if username is correct also it is showing error.

Assign__c <> $ObjectType.Login__c.Fields.UserName__c

Assign__c  = field to be validate in the call log obejct
UserName__c  = field in the login obejct.

please help me here.

thanks in advance.
 
VinayVinay (Salesforce Developers) 
Hi Priya.

Check below sample cross object validation rule

https://help.salesforce.com/articleView?id=fields_useful_validation_formulas_cross_object.htm&type=5

Also, can you post the validation rule?

Limitation:
https://trailblazer.salesforce.com/ideaView?id=08730000000BppM

Thanks
Daniel Anthony 5Daniel Anthony 5
This is really a nice and informative, containing all information and also has a great impact on the new technology. Check it out here:kocuce
 
Daniel Anthony 5Daniel Anthony 5
This is really a nice and informative, containing all information and also has a great impact on the new technology. Check it out here: Buy Research Chemicals online (http://www.medipharmchemicals.com)
Daniel Anthony 5Daniel Anthony 5
The information you have posted is very useful. The sites you have referred was good. Thanks for sharing this: air conditioning repair houston (https://glacialairsystems.com/)