CMS Development

RRimestad9
Participant

Export JSON from GUI field creator to fields.json

SOLVE

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?

0 Upvotes
1 Accepted solution
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Export JSON from GUI field creator to fields.json

SOLVE

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

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.

View solution in original post

3 Replies 3
dennisedson
HubSpot Product Team
HubSpot Product Team

Export JSON from GUI field creator to fields.json

SOLVE

Hey @RRimestad9 !

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

hs fetch --account=<name> <src> [dest] --overwrite
0 Upvotes
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Export JSON from GUI field creator to fields.json

SOLVE

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

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
RRimestad9
Participant

Export JSON from GUI field creator to fields.json

SOLVE

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!

0 Upvotes