Record Type Name in Validation Rule in Salesforce

2 thoughts on “Record Type Name in Validation Rule in Salesforce

  • 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

Leave a Reply