APIs & Integrations

silicium
Member

Is it possible to add some own error message for extension block?

Hello everybody,
According to this docs: https://developers.hubspot.com/docs/methods/crm-extensions/crm-extensions-overview
I am trying to do some extension, all is really good and working fine.
But I have a questions.
Is it possible to add some own error message for extension block, if something is wrong on server side.
For now it is only like this:
“Sorry, but there’s been an error loading the PDFfiller extension. Please try again or contact Support.”

Thanks

0 Upvotes
4 Replies 4
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Is it possible to add some own error message for extension block?

Hi @kremenetskyi,

What you could do is create an ‘empty’ sales object type that is returned with your message when your system doesn’t have any other actual objects.

Create object type

POST /extensions/sales-objects/v1/object-types - Create a new CRM Extensions object type

0 Upvotes
silicium
Member

Is it possible to add some own error message for extension block?

Thank you, will try.

Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Is it possible to add some own error message for extension block?

Hi @kremenetskyi,

Would this error be displayed in response to the initial data fetch request? Or in response to a user clicking on an action?
The following overview doc has details on what is expected to be returned in either case:

CRM Extensions overview

Overview for using the CRM Extensions API

0 Upvotes
silicium
Member

Is it possible to add some own error message for extension block?

Hello @Derek_Gervais,

Thank you for your response!
Yes it is clear what should be returned, but for example, if there are no available blocks, and I would like to show message like this “There is no info”. It means all is good, all is working fine, but there is no info exactly for this user.
I hope you have got my mind.

Thanks

0 Upvotes