Candidate ID's on a bulk email

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
candell
User
Posts: 8
Joined: Wed Sep 28, 2016 11:38 am

Candidate ID's on a bulk email

Post by candell » Tue Aug 21, 2018 4:13 am

There is an oddity in that when you bulk email candidates, it doesn't add a note to all of the candidates have been contacted. It only adds a note to the first candidate found in the list.

Essentially in Bullhorn you can select candidates, select to email them and enter the email text. It then bulk emails them all. However there is no way to see that the candiate has been emailed. It does however add a note to ONLY THE FIRST candidate in the list.

So for example, I email

candidate1
candidate2
candidate3
candidate4
candidate5

Only candidate1 will have the note on their account, however this note references all other candidates instead of adding a note for these candidates.

So what I want to do is grab these notes, grab the referenced candidates in them and add a flag to the candidate to show they have been emailed.

Make sense?

So essentially I expected this to work

find all notes with action = GDPR Mailer (the action for the email)
for these notes, grab all ID's in note.candidates
update candidate.customText19 = true for each candidate.id found

However note.candidates did not contain all of the referenced ID's. Does anyone know the field to grab the referenced ID's?

Thanks

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

Re: Candidate ID's on a bulk email

Post by DanJSupport » Tue Aug 28, 2018 10:04 am

Hi Candell,

When you specify a To-many association field to be returned, only the first 5 will be returned by default. But you can specify the number you want returned with a bracketed number like this:

Code: Select all

GET  search/Note?&query=action:(GDPR Mailer)&fields=candidates[500]&start=0&count=10&BhRestToken={token}
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

candell
User
Posts: 8
Joined: Wed Sep 28, 2016 11:38 am

Re: Candidate ID's on a bulk email

Post by candell » Tue Aug 28, 2018 10:45 am

I never knew that, thanks for the answer. Updating the script...

Post Reply