+ Start a Discussion
Gopinath418Gopinath418 

Why the sandbox have different Id's compare to Production? Is there any specific reason behind it(other than sandbox is different environment and production is different environment)?

NagendraNagendra (Salesforce Developers) 
Hi Gopinath,

Here's salesforce explanation:
When data is copied to a sandbox, object IDs (unique identifiers for all objects—the same as the ID Field Type in the developer API) for records are copied.

After being copied, however, object IDs don’t synchronize between your production organization and your sandbox. The sandbox and its corresponding production organization act as independent organizations. Object data (and corresponding object IDs) that are created in the production organization after the creation or refresh of a sandbox aren’t synchronized into the sandbox. The sandbox has the same behavior—new objects that are created in the sandbox aren’t synchronized back to the production organization.

Hope this information helps.

Regards,
Nagendra.
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Gopinath,
  • The organization IDs of your sandboxes differ from your production organization ID and will change each time your sandbox is refreshed. 
  • Salesforce.com stores sandbox organizations on several instances.
  • When a sandbox is created or refreshed, an instance is selected for your sandbox, so your sandbox may appear on different instances and have different URLs. 
  • When data that contains object IDs is copied from your production instance into your sandbox, the object IDs in your sandbox match the object IDs in your production instance. However, data created in your production instance or sandbox will not contain matching object IDs.

Please refer the below link for reference. I hope it will be helpful.

Please mark it as best answer if the information is informative.

BestRegards
Rahul Kumar
Gopinath418Gopinath418
Hi Nagendra,

Full sandbox is also one of the sanbox ryt, then why the full sandbox id's are similar to production?
If we create a new objects in Full sandbox are not synchornized with production organization so full sand box Id's also should be different with production id's?

Thanks 
Gopinath
NagendraNagendra (Salesforce Developers) 
Hi Gopinath,

As Full copy sandbox and production ID's are identical please consider the below explanation.
  • If you have created anything on sandbox and sent to production then Ids are not same
  • But if you have created anything on production and sent it to full sandbox then Ids are identical.
Hope this helps.

Regards,
Nagendra.
Gopinath418Gopinath418
How come Full sandbox only having same object Id's (same as production object id) and why not other sandboxes? all sandboxes are having different organization id's/different instances then how come it is only possible to full sandbox?

Regaards,
Gopinath