Record Type Name in Validation Rule in Salesforce June 17, 2014June 9, 2022InfallibleTechie Admin In order to use Record Type Name in Validation Rule in Salesforce, check the below image
Can we get to the record type name of a related object, like a lookup field? Lets say Case has a lookup field to Contact myContactLookup__c I want to write validation rule on Case object, where if recordtype on that contact is equal to "Contractor" I can do it with recordtypeId, but cant seem to find a way to do it with name. I dont want to hardcode Id as it is difficult to package Log in to Reply
Can we get to the record type name of a related object, like a lookup field?
Lets say Case has a lookup field to Contact myContactLookup__c
I want to write validation rule on Case object, where if recordtype on that contact is equal to "Contractor"
I can do it with recordtypeId, but cant seem to find a way to do it with name. I dont want to hardcode Id as it is difficult to package
Yes. It supports.