Hi there,
I can’t set custom properties to null when I do requests to “/crm/v3/objects/companies/batch/update” endpoint.
I am receiving the following error message: “[400] Property <property_name> cannot be set to null”
Can you help me to know which is the reason? I don’t see any option in the property configuration that says this property is required so I don’t know why it won’t let me set the value to null.
Thanks in advance
Hey, @mcasarrubios
Can you share an example of a simple request and response, please? This could be from the documentation example or using Postman if you want to make it easy. This helps our community member to troubleshoot alongside you more effectively.
Best,
Jaycee
Attached is an example of a petition and the response I receive. For simplicity, I have only set one property to null but the problem occurs with many other properties.
Request:
{
"url": "/crm/v3/objects/companies/batch/update",
"body": {
"inputs": [
{
"id": "ec863811-9835-48fb-8503-44d96a349812",
"idProperty": "bs_id",
"properties": {
"billin_bs_price": "240",
"billin_bs_country": "ES",
"billin_bs_end_date": null
}
},
{
"id": "1a04b9ae-cebd-451f-8076-8c35da3aae2b",
"idProperty": "bs_id",
"properties": {
"billin_bs_price": "240",
"billin_bs_country": "ES",
"billin_bs_end_date": null
}
}
]
},
"method": "POST",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
Response:
[400] Property billin_bs_end_date cannot be set to null.
Thanks @Jaycee_Lewis for the suggestion
Has no one had this problem, is it something I might have done wrong in the property settings? I don’t see anything in the configuration that says whether a field can be null or not.