Page 1 of 1

Candidate ID's on a bulk email

Posted: Tue Aug 21, 2018 4:13 am
by candell
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

Re: Candidate ID's on a bulk email

Posted: Tue Aug 28, 2018 10:04 am
by DanJSupport
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}

Re: Candidate ID's on a bulk email

Posted: Tue Aug 28, 2018 10:45 am
by candell
I never knew that, thanks for the answer. Updating the script...