APIs & Integrations

eibach-cv
Contributor

Error Says Missing Required email Field but I have it

SOLVE

Hello,

 

I'm trying to send a CONTACT sync message, but its giving me an error about missing an email field:

 

{
    "storeId": "eib-wsm",
    "objectType": "CONTACT",
    "externalObjectId": "6705",
    "hubspotId": null,
    "lastProcessedAt": 1604596977126,
    "errors": [
        {
            "portalId": 8172849,
            "storeId": "eib-wsm",
            "objectType": "CONTACT",
            "externalObjectId": "6705",
            "changedAt": 1604596976187,
            "erroredAt": 1604596976478,
            "type": "MISSING_REQUIRED_PROPERTY",
            "details": "Message missing required fields [email]",
            "status": "OPEN"
        }
    ]
}

 

But as you can see in my request below, I have the email property included

 

{
                        "storeId": "eib-wsm",
                        "objectType": "CONTACT",
                        "messages": [
                                {
                                        "action": "UPSERT",
                                        "externalObjectId": "6705",
                                        "properties": {
                                                "email": "xxxx@gmail.com",
                                                "firstname": "XXXX",
                                                "lastname": "XXXX"
                                        },
                                        "associations": {

                                        }
                                }
                        ]
                }

 

Can somebody help me out with this?

0 Upvotes
1 Accepted solution
eibach-cv
Solution
Contributor

Error Says Missing Required email Field but I have it

SOLVE

I figured it out. Property names need to be the external name set in the mappings, not the Hubspot name

View solution in original post

0 Upvotes
2 Replies 2
eibach-cv
Solution
Contributor

Error Says Missing Required email Field but I have it

SOLVE

I figured it out. Property names need to be the external name set in the mappings, not the Hubspot name

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Error Says Missing Required email Field but I have it

SOLVE

Hey @eibach-cv !

Thanks for posting the solution!  Going to accept it as the solution because, by golly, you deserve it 😎

0 Upvotes