crm cards: allow the ability to add properties fields outside of the results set for fetch api

Status: Idea Submitted

crm cards: allow the ability to add properties fields outside of the results set for fetch api:

when a card is generated each result set can add it’s own unique property by using using the property field.

// example response
{
“results”: [
{
“objectId”: 245,
“title”: “API-22: APIs working too fast”,
“link”: “http://example.com/1”,
“created”: “2016-09-15”,
“priority”: “HIGH”,
“project”: “API”,
“reported_by”: “msmith@hubspot.com”,
“description”: “Customer reported that the APIs are just running too fast. This is causing a problem in that they’re so happy.”,
“reporter_type”: “Account Manager”,
“status”: “In Progress”,
“ticket_type”: “Bug”,
“updated”: “2016-09-28”,
“actions”: [
{
“type”: “IFRAME”,
“width”: 890,
“height”: 748,
“uri”: “https://example.com/edit-iframe-contents”,
“label”: “Edit”,
“associatedObjectProperties”: []
},
{
“type”: “IFRAME”,
“width”: 890,
“height”: 748,
“uri”: “https://example.com/reassign-iframe-contents”,
“label”: “Reassign”,
“associatedObjectProperties”: []
},
{
“type”: “ACTION_HOOK”,
“httpMethod”: “PUT”,
“associatedObjectProperties”: [],
“uri”: “https://example.com/tickets/245/resolve”,
“label”: “Resolve”
},
{
“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://example.com/tickets/245”,
“label”: “Delete”
}
]
},
{
“objectId”: 988,
“title”: “API-54: Question about bulk APIs”,
“link”: “http://example.com/2”,
“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”: “https://example.com/edit-iframe-contents”,
“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://example.com/tickets/245”,
“label”: “Delete”
}
]
}
],
“settingsAction”: {
“type”: “IFRAME”,
“width”: 890,
“height”: 748,
“uri”: “https://example.com/settings-iframe-contents”,
“label”: “Settings”
},
“primaryAction”: {
“type”: “IFRAME”,
“width”: 890,
“height”: 748,
“uri”: “https://example.com/create-iframe-contents”,
“label”: “Create Ticket”
}
}

notice how primaryAction and settingAction is outside of the results array. it would be good to be able to add properties outside of the results to be able to generate text. one use case for us is that we have a series of card results and we wanted to agregate (sum) specific values and put it at the bottom.

You can achieve this and more with the new CRM development beta (available with Sales or Service Hub enterprise). As a super admin, you can enroll your account into the beta and develop custom cards with serverless functions and new UI components.