- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
how can I customise a card content?
Feb 18, 2021 1:24 AM
I read through this doc https://legacydocs.hubspot.com/docs/methods/crm-extensions/crm-extensions-overview#data-fetch-reques... but it doesn't seem to work with the card I created.
I have created a card and installed it in one of my account. I am able to view the card in the right panel when I open a company. But the content is empty.
I have created a property with a display label in the card but it still shows empty.
I also set a data fetch URL in the card setting and I am able to see a request comes to my backend service. I believe this is from hubspot when I open the card. My service response below json to the request. But still I can't see anything in the page. It is always empty.
{
objectId: event.associatedObjectId,
title: 'API-54: Question about bulk APIs',
link: 'https://dashboard.myzeller.dev',
created: '2016-08-04',
priority: 'HIGH',
project: 'API',
reported_by: 'ksmith@hubspot.com',
description:
'Customer is not able to find documentation about our bulk Contacts APIs.',
reporter_type: 'Support Rep',
status: 'Resolved',
ticket_type: 'Bug',
updated: '2016-09-23',
properties: [
{
label: 'Resolved by',
dataType: 'EMAIL',
value: 'ijones@hubspot.com',
},
{
label: 'Resolution type',
dataType: 'STRING',
value: 'Referred to documentation',
},
{
label: 'Resolution impact',
dataType: 'CURRENCY',
value: '94.34',
currencyCode: 'GBP',
},
],
actions: [
{
type: 'IFRAME',
width: 890,
height: 748,
uri: '',
label: 'Edit',
},
{
type: 'CONFIRMATION_ACTION_HOOK',
confirmationMessage: 'Are you sure you want to delete this ticket?',
confirmButtonText: 'Yes',
cancelButtonText: 'No',
httpMethod: 'DELETE',
associatedObjectProperties: ['protected_account'],
uri: 'https://dashboard.myzeller.dev/',
label: 'Delete',
},
],
};
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content