$filter = new Filter();
$filter->setPropertyName('email')->setOperator('EQ')->setValue($email);
$filterGroup = new FilterGroup();
$filterGroup->setFilters([$filter]);
$searchRequest = new PublicObjectSearchRequest();
$searchRequest->setFilterGroups([$filterGroup]);
/* @var CollectionResponseWithTotalSimplePublicObject $contactsPage */
$contactsPage = $this->hubspot->crm()->contacts()->searchApi()->doSearch($searchRequest);
Now i want to read and update this contact with additional infos/properties. Not the default properties, I mean the extending properies.
In the hubspot backend I can see an set this, when I click on details. But in did not find a way to read all propery values of that contact, or set them.
With this way i only can get informations about the different property group and all the propertyfields in that propertygroups
$this->hubspot->crm()->properties()
e.g. which type or label have the fields.
I didn't figured out how to get the values of these propertygroups and and extending fields to a single contact. I need to read and set them.
Can someone give me a hint, what is the proper way to manage that?
And I found out that I can just add the property values to contact. In all examples, and when I read a contact without defining the properties, there were just the basic properties, so I thought for the ohter properties, must be an other way to read/add them.
And I found out that I can just add the property values to contact. In all examples, and when I read a contact without defining the properties, there were just the basic properties, so I thought for the ohter properties, must be an other way to read/add them.
yea, probably you are right. I dont know exactly if these are custom fields, as someone else configured them for me, but in fact they can be configured, they might be custom fields. I mean these fields: when I'm in the hubspot backend and click in a contact on the button "view all properties", there is a list with many other proprties, beside the default ones, and they are grouped. These fields I want to retieve/update for a contact.