APIs & Integrations

tomasfp
Member | Elite Partner
Member | Elite Partner

CRM Extensions API

Hi, I am trying to create a CRM Extention for the Contact pages. I have created an app in my Developer Account, with a (Contacts) CRM Card. I have used the url that is generated on the Developer Account App page to authorize the App on my Customer account. But nothing happens, I don't see anything on the Contact page.

 

Any help is appreciated!

 

Cheers, Tomas

0 Upvotes
10 Replies 10
WendyGoh
HubSpot Employee
HubSpot Employee

CRM Extensions API

Hi @tomasfp,

 

When looking at the integration apps in portal 2660094, I'm not seeing the app 205544 (Click the 'Settings' gear at the top right hand corner > At the left side panel, expand 'Integrations' > Click 'Apps'.

 

Can you install the app into portal  2660094 and see if the CRM shows?

0 Upvotes
tomasfp
Member | Elite Partner
Member | Elite Partner

CRM Extensions API

Hi @WendyGoh , I used the generated url, then I selected portal 2660094.

As I understand from the documentation this is all that is needed, is that correct?

 

/Tomas

 

https://app.hubspot.com/oauth/authorize?client_id=XXXXXXXXXXXXXXXXXXXXXX&redirect_uri=https://www.EX...

 

 

0 Upvotes
WendyGoh
HubSpot Employee
HubSpot Employee

CRM Extensions API

Hi @tomasfp,

 

You're close and is only missing this step: Get OAuth 2.0 Access Token and Refresh Tokens where you'd need to grab the authorization code generated here Initiate an Integration with Oauth 2.0 and your app will be successfully installed on your portal 2660094.

0 Upvotes
tomasfp
Member | Elite Partner
Member | Elite Partner

CRM Extensions API

Thank you @WendyGoh , that fixed the problem.

 

I now have another problem. If I just return "title" the Card displays, but if I add "movie_link" I get "Response deserialization error". See screen snips below.

 

Cheers, Tomas

 

Capture.PNG

 

Capture.PNG

0 Upvotes
WendyGoh
HubSpot Employee
HubSpot Employee

CRM Extensions API

Hi @tomasfp,

 

This is because you didn't define movie_link under the propertyDefinition when you create the object type and I check this using this endpoint here View an object type. You can either go ahead and modify it using this endpoint - Modify an object type or if you'd like to pass movie_link as a custom property, this is an example:

 

{
  "results": [
    {
      "properties": [
        {
          "label": "Example custom link property",
          "dataType": "LINK",
          "value": "https://www.example.com/link",
          "linkLabel": "Test Link"
        }
      ]
      //...
    }
    //...
  ]
  //...
}

You can learn more here: Extension property types

0 Upvotes
tomasfp
Member | Elite Partner
Member | Elite Partner

CRM Extensions API

Hi @WendyGoh , when I do "view object type" I get "dataType" twice, why is that?

 

 

Capture.PNG

0 Upvotes
WendyGoh
HubSpot Employee
HubSpot Employee

CRM Extensions API

Hi @tomasfp,

 

Coud you try modify the object type using this endpoint: Modify an object type and see if the boolean datatype still show? 

0 Upvotes
tomasfp
Member | Elite Partner
Member | Elite Partner

CRM Extensions API

@WendyGoh I tried that, no difference.

0 Upvotes
WendyGoh
HubSpot Employee
HubSpot Employee

CRM Extensions API

Hi @tomasfp,

 

I believe this is closely related to what was discussed here: https://community.hubspot.com/t5/APIs-Integrations/Hubspot-adding-quot-BOOLEAN-quot-dataType-to-prop...

 

Like Isaac, when I use this link - https://api.hubapi.com/extensions/sales-objects/v1/object-types/99554?hapikey={{hapikey}} to view the CRM object type on my Google Chrome browser, the following GET request rendered in my browser:

viewObjectTypeChrome.png

 

I'm not seeing "dataType": "BOOLEAN".

 

However, I'm able to reproduce this behavior in my Chrome Incognito browser and as mentioned by Isaac:

This seems to be more of a quirk with data formatting than an issue with HubSpot's APIs. JSON viewers and REST clients remove the "dataType":"BOOLEAN" field.

If your concern is that this is causing the "Response deserialization" error, we do not believe that this would be causing the error. That said, are you still seeing the "Response deserialization" error or is there any particular concern on this?

0 Upvotes
tomasfp
Member | Elite Partner
Member | Elite Partner

CRM Extensions API

AppId: 205544

Account: 2660094

0 Upvotes