• Rucha Pradhan
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi,

I have always believed that using DeveloperName is the best way to get Id of a RecordType. There is a small risk though that if an someone changes the DeveloperName the code may break. But usually only admins have access to change the DeveloperName and they are aware of the impacts. 

But one of my colleagues had a different philosophy that its better to use Ids instead of DeveloperName as it does not have the risk that someone might change it. Its convincing because even if the ids change between sandboxes and production, its only a one time change that needs to be done. But after that there is no risk that someone might change the ID and the code breaks.

Is there any advantage of using DeveloperName over actual Ids?