Page 1 of 1

API to extract specific fields of its associated entity

Posted: Fri Aug 14, 2020 11:13 am
by bharathbhdisys
Dear Team,

I am trying to extract Candidate ID field from the entity Placement. Below is the API used,

https://rest99.bullhornstaffing.com/res ... ecfc6dfc85
{"query": "id:19884"}

Result:
{
"total": 1,
"start": 0,
"count": 1,
"data": [
{
"id": 19884,
"candidate": {
"id": 1106202,
"firstName": "test",
"lastName": null
},
"dateAdded": 1597409648510,
"_score": 1.0
}
]
}

Here my need is, I want to extract only Candidate ID and dateAdded fields for the given Placement entity ID. Don't want all other candidate related fields such as firstname or lastname.

Please help me to figure out a way to get the required fields alone.

Thanks & Regards,
Bharath Kumar B

Re: API to extract specific fields of its associated entity

Posted: Tue Aug 18, 2020 3:20 pm
by tluczak
bharathbhdisys wrote: Fri Aug 14, 2020 11:13 am Dear Team,

I am trying to extract Candidate ID field from the entity Placement. Below is the API used,

https://rest99.bullhornstaffing.com/res ... ecfc6dfc85
{"query": "id:19884"}

Result:
{
"total": 1,
"start": 0,
"count": 1,
"data": [
{
"id": 19884,
"candidate": {
"id": 1106202,
"firstName": "test",
"lastName": null
},
"dateAdded": 1597409648510,
"_score": 1.0
}
]
}

Here my need is, I want to extract only Candidate ID and dateAdded fields for the given Placement entity ID. Don't want all other candidate related fields such as firstname or lastname.

Please help me to figure out a way to get the required fields alone.

Thanks & Regards,
Bharath Kumar B
Per http://bullhorn.github.io/rest-api-docs ... #placement Candidate ID, and firstName, lastName are always pulled back when querying the Candidate info on a Placement.