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

crm_extensions

#1

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


#2

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:


#3

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


#4

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.


#5

Thank you, will try.