Hi,
Trying to migrate to using the Private App Key.
Running
$client->crm()->contacts()->batchApi()->create()
for a list of “inputs” created like:
$property = [ 'email' => $email, 'properties' => [ [ 'property' => $customPropertyField1, 'value' => $value1, ],//... ],];$batch[] = new SimplePublicObjectInput(['properties' => $property]);// ... above loop finishes$BatchInputSimplePublicObjectInput = new BatchInputSimplePublicObjectInput(['inputs' => $batch,]);$apiResponse = $client->crm()->contacts()->batchApi()->create($BatchInputSimplePublicObjectInput);
Getting the following exception info:
[400] Client error: `POST https://api.hubapi.com/crm/v3/objects/contacts/batch/create\` resulted in a `400 Bad Request` response:
{“status”:“error”,“message”:"Invalid input JSON on line 1, column 75: Cannot deserialize value of type `java.lang.String (truncated…)
Am I doing something wrong above?
Or is it that I’m using the old data format rather than what I see at Accounts Dashboard | HubSpot ?
Do I need to perform the create for the custom properties, or should they exist still regardless of the migration?
Thanks,
Glenn
