Move Custom Objects from the Sandbox to Production
SOLVE
We built several complex custom objects in our Sandbox environment. We are getting ready to load data into our production environment and need to copy the custom objects. One option is to do it by hand within HubSpot, which will take a long time and is prone to errors.
Is there a quick/easy way to export the Custom Objects and Properties we have added to the Contact Object from our sandbox to production environments? I found API requests to pull the data for the Custom Objects, but it doesn't look like I can use that export to directly import into the production environment.
We start by creating the Objects in Postman because we work from Dev to Staging to Production. When we start in Postman we just tweak the Objects as we learn.
You can pull the Objects using the API, then push them into another HubSpot Portal, you'll need to clean out everything except the bare minimum of properties to avoid clashes.
And, I would set up a test portal to test your API work – you can't rename Objects if you make a mistake (you have to delete them and add them again).
We start by creating the Objects in Postman because we work from Dev to Staging to Production. When we start in Postman we just tweak the Objects as we learn.
You can pull the Objects using the API, then push them into another HubSpot Portal, you'll need to clean out everything except the bare minimum of properties to avoid clashes.
And, I would set up a test portal to test your API work – you can't rename Objects if you make a mistake (you have to delete them and add them again).
Move Custom Objects from the Sandbox to Production
SOLVE
Thanks for the pointing me in the right direction. We created the Objects in our sandbox using Postman with only a few properties and then added most of the properies directly in HubSpot.
I ended up pulling all the schema of the objects using the API, removed all the native HubSpot properties and created the new Object in our Production environment using my modified schema. It seemed to work well and didn't take too much time.
Move Custom Objects from the Sandbox to Production
SOLVE
Hi, @NGermay👋 Thanks for reaching out. Let's see if our community has any thoughts or approaches outside what you've already found.
Hey, @Mike_Eastwood@KMurota@weiliang_lee have you tackled this type of work before? Do you have any thoughts on approaches outside using the API to export the schema and records?