APIs & Integrations

matthew2
Member

Sidecard Error from dataFetch

SOLVE

HI I'm trying to load data from my dataFetchURI for my custom side card.

My api current returns

   {
        "results": [
           {
                "objectId": "51",
                "title": "Last updated",
                "properties": [
                    {
                        "lastUpdated": "1536710400000"
                    }
                ]
            }
        ]
    }

For the endpoint:

https://mysiteurl.com/contact?userId=6545462&userEmail=user@user.com&associatedObjectId=51&associate...

But for some reason I get the error
Sorry, but there's been an error loading the Side Card extension. Please try again or contact Support.

I'm trying to display some user data here pulled from another source. Is my response data formatted correctly? For the object type itself I created a custom object type

0 Upvotes
1 Accepted solution
Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

Sidecard Error from dataFetch

SOLVE

Hi @matthew,

If the properties are defined on the object-type, you can include them as a top-level property like this:

{
        "results": [
           {
                "objectId": "51",
                "title": "Last updated",
                "lastUpdated": "1536710400000"
                "properties": []
            }
        ]
    }

View solution in original post

0 Upvotes
1 Reply 1
Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

Sidecard Error from dataFetch

SOLVE

Hi @matthew,

If the properties are defined on the object-type, you can include them as a top-level property like this:

{
        "results": [
           {
                "objectId": "51",
                "title": "Last updated",
                "lastUpdated": "1536710400000"
                "properties": []
            }
        ]
    }
0 Upvotes