Skip to content

GetListByIdAsync returns empty Contacts (with only "Id" set) #86

@MFrattaruolo

Description

@MFrattaruolo

Hi,
I need to get a Contact list with their ID.
I solved the problem using this code:

var clientList = new HubSpotListOfContactsClient("XXX-XXXX-XXXXX");
var listResult = await clientList.GetListByIdAsync<ContactListHubSpotEntity<ContactHubSpotEntity>>(123, new ListOfContactsRequestOptions { NumberOfContactsToReturn = 50 });

In the result all the Contacts (ContactHubSpotEntity) present in the list I searched for appear correctly but these Contacts are empty except for the ID field.
In order to get the remaining Contacts data I am forced to make a further call (GetByIdAsync) for each ID obtained.

Is it possible to have all the Contacts data directly called GetListByIdAsync?

Thank you in advance and I am waiting for your reply.

With best regards
Michele

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions