June 17, 2014

Record Type Name in Validation Rule in Salesforce

In order to use Record Type Name in Validation Rule in Salesforce, check the below image


2 comments:

  1. 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

    ReplyDelete