function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sssssssssssssssssssssss ssssssssssssssssssssssss s 

Is RecordTypeId for eg Case object consistent across sandbox and prod?

Hi,
I am currently using Flow Builder Spring 19'. I have a situation where I need to change the Record Type.
I DONT want to use APEX.
I am hardcoding the RecordTypeId = xxxxx to change the value of record type.
Will the RecordTypeId change between sandbox and prod, or its same, or i need to take some precaution while migrating changes to PROD, or any better suggestions?

Many thanks in advance!
Gabriel C FerreiraGabriel C Ferreira

Hi,

You can't guarantee that the Record Type Ids will be the same between the orgs, but that are some scenarios to evaluate:

  • If you create a new Record Type and then deployed it between organizations, the IDs will be different
  • When you make a sandbox refresh, the IDs will be the same
So, if you don't want to use any Apex, you have to make sure that the your sandbox had a refresh after the record types you are working with was created in your PROD org.

If this helped solved your issue, please mark as the best answer.

Best Regards.