Timeline for Use Name vs DeveloperName for RecordType?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 13, 2017 at 17:38 | comment | added | Christian Szandor Knapp | The cool thing about RecordType.Name is: Account myAccount = new Account( Name="TestAccount", RecordType = new RecordType(Name="myRecordTypeName)); insert myAccount | |
Mar 13, 2017 at 17:19 | vote | accept | Vladyslav K | ||
Mar 13, 2017 at 17:12 | comment | added | Sebastian Kessel | Huh, so right you are. Very strange indeed. I hope this gets remedied soon. | |
Mar 13, 2017 at 17:11 | comment | added | Vladyslav K | But there is no DeveloperName in RecordTypeInfo class | |
Mar 13, 2017 at 17:10 | history | edited | Sebastian Kessel | CC BY-SA 3.0 |
added 48 characters in body
|
Mar 13, 2017 at 17:09 | comment | added | Sebastian Kessel |
You could use getRecordTypeInfos(); and iterate. No new soql queries needed.
|
|
Mar 13, 2017 at 17:07 | comment | added | Vladyslav K | So I believe Salesforce has to add ability to get Id by DeveloperName without query. Because sometimes extra query can be serious issue. | |
Mar 13, 2017 at 17:04 | history | answered | Sebastian Kessel | CC BY-SA 3.0 |