API search on custom field and value
Posted: Tue Aug 20, 2024 12:24 pm
Hi,
We are using the API search functionality to get jobs where a custom field has a specific value. This has been working for at least a year, but seems to have stopped working over the last few days/week.
This is the query we are using:
/companies/0/jobs/?Stage=in(Complete,Archived)&CustomFields.CustomField.ID=35&CustomFields.Value=Yes&columns=ID
The combination of CustomFields.CustomField.ID=35&CustomFields.Value=Yes was suggested in a previous post here to get it working in the first place.
If I query a specific job that it should return I can see the custom field ID and value match the filter but it's not returned in the above query.
[
{
"ID": 65125,
"CustomFields": [
{
"CustomField": {
"ID": 35,
"Name": "Approved",
"Type": "List",
"IsMandatory": false,
"ListItems": [
"Yes",
"No",
"Sent"
]
},
"Value": "Yes"
}
]
}
]
Any idea why this is no longer working?
Thanks,
Duncan
We are using the API search functionality to get jobs where a custom field has a specific value. This has been working for at least a year, but seems to have stopped working over the last few days/week.
This is the query we are using:
/companies/0/jobs/?Stage=in(Complete,Archived)&CustomFields.CustomField.ID=35&CustomFields.Value=Yes&columns=ID
The combination of CustomFields.CustomField.ID=35&CustomFields.Value=Yes was suggested in a previous post here to get it working in the first place.
If I query a specific job that it should return I can see the custom field ID and value match the filter but it's not returned in the above query.
[
{
"ID": 65125,
"CustomFields": [
{
"CustomField": {
"ID": 35,
"Name": "Approved",
"Type": "List",
"IsMandatory": false,
"ListItems": [
"Yes",
"No",
"Sent"
]
},
"Value": "Yes"
}
]
}
]
Any idea why this is no longer working?
Thanks,
Duncan