Response deserialization error on CRM Extension

Highlighted
Contributeur occasionnel

Been fiddling with this for hours with no luck.

I’m running the php code from my test server. The resulting JSON looks like it’s supposed to work, but I’m not sure what I’m doing wrong.

(Full Disclosure, I’m not a trained developer, just a marketing director with some coding experience and hacking work ethic.)

Répondre
0 Vote / Votes
6 Réponses
Highlighted
Modérateur

Hi @Jeremy_Ledford

Do you have an example of the JSON you’re returning?

Répondre
0 Vote / Votes
Highlighted
Contributeur occasionnel
Répondre
0 Vote / Votes
Highlighted
Contributeur reconnu

@Jeremy_Ledford – I have run into this issue and it had to do with the NULL values. If you have an Object Type defined, I believe it requires you to provide either a valid value, no value at all (ie - don’t pass “trackingNumber”: null, just omit “trackingNumber” entirely) or pass an empty string (if the field expects a string).

I could be wrong on this, but that’s what I seem to remember happening.

What language are you using?

Répondre
0 Vote / Votes
Highlighted
Contributeur occasionnel

I will give that a shot and see if it works, thanks!

Répondre
0 Vote / Votes
Highlighted
Contributeur occasionnel

That did the trick. Thanks Cre!

Répondre
0 Vote / Votes
Highlighted
Contributeur reconnu

good to hear.

the crm extensions api is still pretty fresh off the press. so there are some quirks to it.

however, my experience with the folks at hubspot is that they are always improving the product, thus problems like this tend to go away in time.

Répondre
0 Vote / Votes