Export JSON from GUI field creator to fields.json

I have created and uploaded a module via the hubspot-cli. I theno go to app.hubspot.com and add fields to the module through the GUI since it is so very user friendly.

After having added fields, I try to import the fields.json file by using ‘hs fetch’, but only get the default fields.json file. Is there a way I can get all the field definitions as JSON from the GUI to my local system?

@RRimestad9 hs fetch should work. Did you publish the changes to the module before fetching?

Hi!

For some reason it suddenly worked. I might have forgot to publish, although I seem to clearly remember doing that. Thanks for your help!

Hey @RRimestad9 !

You may need to try to add the --overwrite flag

hs fetch --account=<name> <src> [dest] --overwrite