1-Many Field Order

Forum for users and developers of Bullhorn's new REST API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
ryanls
User
Posts: 2
Joined: Wed Nov 25, 2015 4:26 pm

1-Many Field Order

Post by ryanls » Tue Jun 05, 2018 12:31 pm

When requesting entries for a 1-many field of an entity, what order are the linked entities returned in?

We've performed some test runs and manually examined the responses and it seems to be the most recently added linked entities but we haven't been able to find anything to confirm this. Can anyone confirm?

DanJSupport
User
Posts: 31
Joined: Mon Aug 15, 2016 9:57 am

Re: 1-Many Field Order

Post by DanJSupport » Wed Jun 20, 2018 10:15 am

Hi Ryanls,

This isn't documented anywhere but from some testing it appears the to-many associations will be ordered by the ID of the associated entity. For example this call

Code: Select all

/entity/Candidate/3748?fields=categories
returns

Code: Select all

{
    "data": {
        "categories": {
            "total": 3,
            "data": [
                {
                    "id": 2000262,
                    "name": "Category 3"
                },
                {
                    "id": 2000261,
                    "name": "Category 2"
                },
                {
                    "id": 2000144,
                    "name": "Category 1"
                }
            ]
        }
    }
}
Will order the categories in order of their IDs from largest to smallest.
Dan Johnson
Tier 2 / Enterprise Support
Bullhorn Support US: 617-478-9126
Bullhorn Support UK: 44 800 032 2848
Bullhorn Support Australia: 61 28 073 5089
Bullhorn Support International: 617-478-9131

Post Reply