Issue in creating CRM Extensions

Hi Team,

I’m working Hubspot API, got one issue while creating Hubspot CRM Extension as shown in below attachment.

and Passing JSON as below:

{
 "applicationId": 207191,
 "baseUris": [
 "https://example.com/actions"
 ],
 "dataFetchUri": "https://example.com/demo-tickets",
 "title": "DemoTickets",
 "propertyDefinitions": [
 {
 "name": "ticket_type",
 "label": "Ticket type",
 "dataType": "STRING"
 },
 {
 "options": [
 {
 "type": "SUCCESS",
 "label": "In Progress",
 "name": "inprogress"
 },
 {
 "type": "DEFAULT",
 "label": "Resolved",
 "name": "resolved"
 }
 ],
 "name": "status",
 "label": "Status",
 "dataType": "STATUS"
 },
 {
 "name": "priority",
 "label": "Priority",
 "dataType": "STRING"
 },
 {
 "name": "project",
 "label": "Project",
 "dataType": "STRING"
 }
 ],
 "associatedHubSpotObjectTypes": [
 "DEAL"
 ],
 "associatedHubSpotObjectTypeProperties": {
 }
}

And can you please elaborate below properties:

  • baseUris
  • dataFetchUri

How its work with extension?

Hey @Shivasagar,

I’m more than happy to shed some lights here!

Referencing this documentation - CRM Extensions overview (Under ‘Object Type Fields’)

  • baseUris: A list of acceptable base URIs for actions. All action URIs must be located under one of these paths
  • dataFetchUri: The URI the CRM will call to fetch data for a given CRM object specified in associatedHubSpotObjectTypes.

For your case, if you’re not using any action hook e.g. button to create ticket you’d only need to be concern about the dataFetchUri. It is the request point that HubSpot fetch to display the CRM extension when a user views a CRM record.

When I attempt to view the data fetch URI that you provided - c6bdxxx.ngxx.io > I’m seeing a tunnel not found error. This is likely why you’re seeing the error on the CRM extension card. You would need to ensure that the data fetch url contain information for HubSpot to display to the user and it is accessible.

Hope this helps to clarify and do let me know if there’s any further questions on this!