We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jun 20, 2019 8:35 AM
Hi,
I would like to create an extension for HUBSPOT CRM. I just found this page explaining the basics : https://developers.hubspot.com/docs/methods/crm-extensions/crm-extensions-overview#action-types
However with that only ressource, i'm having a lot of trouble figuring out what i should do.
I would like to add a button an a "contact card". I would like this button to open an iframe in wich i would have access to all the contact's informations. The main goal in the end is to export some choosen informations to pdf.
So far, i've tried to create an extension on my account developper.
In that app i've created an extension api called User to PDF.
In this extension, i added a Data Fetch Api url that returns a JSON but, honestly, i'm not sure i understand what i should put in that JSON to tell the extension i want my Export Button.
Also, i'm not so sure neither on how i should do to test my extension...
Any help will be deeply appreciatted 🙂
Jun 21, 2019 9:55 AM
Hi @Idmkr , while it's not super straightforward, most of the info can be found on the crm-extensions overview doc. As an example of how this can be done, I have this static page that just has JSON on it. https://obscure-cliffs-47038.herokuapp.com/
To create an iFrame in-app, you can use the actions array inside of the one or more of the objects in the results array to create an action to open up the iframe inside HubSpot. From my gif attached below you will be able to see how this looks inside HubSpot:
Your settings in your developer account would look something like this:
Hope this helps get you on the right track!