Sidecard Error from dataFetch


#1

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&associatedObjectType=CONTACT&portalId=4929475&last_updated_from_clearbit=1536710400000&email=bh@hubspot.com

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


#2

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": []
            }
        ]
    }