Skip to main content

What's the trick to finding a record type ID in Lightning? I looked in the URL and the only string of letters/numbers that looked like it "could" be the ID was 20 digits. 

5 commenti
  1. 13 nov 2017, 20:23

    Or, if you fancy yourself some SOQL, go to workbench and run this:

    SELECT Id, Name, DeveloperName FROM RecordType WHERE SObjectType = '[YourObject]' AND Name = '[YourRecordTypeName]'

    If you're feeling particularly not up to typing a lot, you can use:

    SELECT Id, Name, DeveloperName, SobjectType FROM RecordType WHERE Name LIKE '%MyRecType%'

    LIKE says, get me things that are like this. Since record type names can be the same across objects, it's good to include the SobjectType to make sure you're getting the right one.

0/9000