question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ContactHubSpotModel.Email always null

See original GitHub issue

Describe the bug In all cases, the ContactHubSpotModel.Email property is null, although I am certain that each contact has a valid e-mail address. LastName and FirstName give normal response

Repro Steps

foreach (ContactHubSpotModel contact in result.Contacts)
{
		Console.WriteLine($"{contact.FirstName} {contact.LastName} {contact.Email}");
}
Console.ReadLine();

Expected behavior Return the e-mail address as registered in HubSpot

Screenshots

Anything else?* I am new to HubSpot (integration)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
franknessecommented, Nov 27, 2019

ok, clear. Thanks for the feedback. I will close this one.

0reactions
Psypher9commented, Nov 27, 2019

@franknesse, this is actually due to HubSpot’s API specifications found here under the Optional Parameter section and Property. Their API only includes a few properties (i.e. first and last name) by default when getting all contacts by this method.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ContactHubSpotModel.cs
C# .NET Wrapper around the common HubSpot APIs. Contribute to hubspot-net/HubSpot.NET development by creating an account on GitHub.
Read more >
API - Cannot update custom contact property (returns null)
Hello, There is no response for this post curl; and it does not update contact. Is there anything wrong? There is a property...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found