I'm trying to copy the fields from a module in one account to another account where I want to make the same module. First I use the "Copy JSON" to copy the entire fields.json from the account with the existing module. Then using the CLI in VS Code I use the "hs upload" command to upload the fields.json to the new module in the other account. Each time I look at the module in the Design Manager though the fields continue to be empty. I do see the success message in the CLI: "[SUCCESS] Uploaded file from x to y in the Design Manager of account z". Every other CLI command I am running works just fine, eg. hs list, hs fetch, etc. What do I need to do to get that fields.json imported and active in the module in the other account?
I'd get a success message but the original fields.json was still reflected in the Fields UI in the right column. So I'm not sure what I was succeeding at but it was not uploading and replacing the fields.json.
The problem was that in order for it to overwrite the existing fields.json, I needed to include fields.json at the end of destination path like this:
I'd get a success message but the original fields.json was still reflected in the Fields UI in the right column. So I'm not sure what I was succeeding at but it was not uploading and replacing the fields.json.
The problem was that in order for it to overwrite the existing fields.json, I needed to include fields.json at the end of destination path like this:
Here's a little more info. The account where the fields.json is copied from has CMS Hub Professional while the account I am trying to upload it to is CMS Hub Starter. I don't know if that matters. Also the fields.json is created by Hubspot and I am not changing it at all. It's a very large file. Lastly despite the fields.json upload success message, the whole fields panel remains empty as you can see in this screenshot:
Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of Webalite a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world's first automated HubSpot Portal Audit that helps you work smarter with HubSpot.
The fields.json file is generated by Hubspot so I was thinking it's going to be valid and it is when I run it through https://jsonlint.com/. Then I also pasted into the Hubspot browser editor and it says "no errors found". Open to other ideas.