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).
Jan 26, 2022 3:36 PM
Hi there
I've made some good progress with a CRM panel integration. The API endpoint will return useful data if the external system finds a relevant profile to return and show in the CRM panel.
However there are times when no profiles are available. When this happens I am returning
{
results: [],
actions: []
}
...but the CRM card is just blank (with my app name on it).
Is it possible to return a message to tell the user there's no matches? I could return a basic results: [{objectId: -1, title: 'No Results'}] to help communicate this, but wondering if there's a nicer way to support users.
Jan 27, 2022 1:34 PM
how do you recommend approaching this?
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |
Jan 27, 2022 9:08 PM
@dennisedson @ProspectsIDX
That's actually all we've come up with, along with doing the same for errors if we want to display an error to a user in a managed way ("No results found, try updating the contact in system X and try again!") or also how we're doing dynamic lookup and feature blocking ("Your user has not been enabled to use this feature by your admin in system X. Please reach out to your admin team and have them enable this for your HubSpot account.")
I personally would love to see a more explicit "errors/alerts" object or something to that effect that we could use, but it's not there at the moment. (@dennisedson I'd throw +2 for that kind of feature, though! Not sure if we've ever mentioned that to the team)