How to save a file with a candidate
Moderators: StaffingSupport, s.emmons, BullhornSupport
How to save a file with a candidate
What is the REST API call for saving a file (PDF) with a candidate record?
Re: How to save a file with a candidate
Good Morning Jkaashoek,
Do you still require assistance on this issue?
Do you still require assistance on this issue?
Patrick Mularski
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
US: 617-478-9126
UK: 44 800 032 2848
Australia: 61 28 073 5089
International: 617-478-9131
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
US: 617-478-9126
UK: 44 800 032 2848
Australia: 61 28 073 5089
International: 617-478-9131
Re: How to save a file with a candidate
Yes we have not found the API call(s) ourselves.
Thanks,
Joop
Thanks,
Joop
Re: How to save a file with a candidate
Hi jkaashoek,
A pdf will be done the same way that a word document would be parsed into the system. The main issue is that the pdf has selectable text that can be parsed. If the pdf is essentially an image file then it will not function properly.
Here is a link that runs through the entire process. The most commonly missed issue when running through this is that the body is setup as a multipart/form attachment when adding the file to be parsed.
http://developer.bullhorn.com/articles/ ... fromresume
Hope this helps.
A pdf will be done the same way that a word document would be parsed into the system. The main issue is that the pdf has selectable text that can be parsed. If the pdf is essentially an image file then it will not function properly.
Here is a link that runs through the entire process. The most commonly missed issue when running through this is that the body is setup as a multipart/form attachment when adding the file to be parsed.
http://developer.bullhorn.com/articles/ ... fromresume
Hope this helps.
Colin Coffman
Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)
Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)
Re: How to save a file with a candidate
Thanks for the info. Our PDF files contain images only so I guess they won't be uploadable.
Re: How to save a file with a candidate
So the posting of the raw file is not an option?
Attach the resume file to the candidate
To attach the original resume file to the Candidate entity, we call PUT /file/Candidate/{candidateId}/raw. We attach the .doc resume file to the request as a multipart/form attachment; in a browser form, this is <input type="file"/>.
Request URI:
PUT https://rest.bullhornstaffing.com/rest- ... {corpToken}
/file/Candidate/2038/raw?externalID=Portfolio&fileType=SAMPLE
The externalID and fileType parameters are required. For externalID, use Portfolio as the value. For fileType, use SAMPLE as the value.
Response:
Attach the resume file to the candidate
To attach the original resume file to the Candidate entity, we call PUT /file/Candidate/{candidateId}/raw. We attach the .doc resume file to the request as a multipart/form attachment; in a browser form, this is <input type="file"/>.
Request URI:
PUT https://rest.bullhornstaffing.com/rest- ... {corpToken}
/file/Candidate/2038/raw?externalID=Portfolio&fileType=SAMPLE
The externalID and fileType parameters are required. For externalID, use Portfolio as the value. For fileType, use SAMPLE as the value.
Response:
Re: How to save a file with a candidate
Good Afternoon jkaashoek,
I apologize, but I do not understand your question. What are you trying to do specifically, and can you add your code for us to review?
I apologize, but I do not understand your question. What are you trying to do specifically, and can you add your code for us to review?
Patrick Mularski
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
US: 617-478-9126
UK: 44 800 032 2848
Australia: 61 28 073 5089
International: 617-478-9131
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
US: 617-478-9126
UK: 44 800 032 2848
Australia: 61 28 073 5089
International: 617-478-9131
Re: How to save a file with a candidate
We are trying to integrate an assessment service with Bullhorn, and to save PDF's of test results in a candidate profile. The PDF is not resume-related.
-
- User
- Posts: 67
- Joined: Thu Feb 20, 2014 4:52 pm
Re: How to save a file with a candidate
We use a PUT command to attach a file to a candidate (not just resumes) but use the base64 option instead of the raw file. The uri looks like this -> /file/Candidate/{candidateId}. The json included with the body has the following fields:
fileContent = Base64 string representing the file content
externalID = portfolio
filename = file name
fileType = SAMPLE
description = file description
type = type of file (e.g. resume, writing sample, data sheet, etc.)
contentType = application/msword, application/pdf, etc.
This option should work fine for attaching your rest results.
fileContent = Base64 string representing the file content
externalID = portfolio
filename = file name
fileType = SAMPLE
description = file description
type = type of file (e.g. resume, writing sample, data sheet, etc.)
contentType = application/msword, application/pdf, etc.
This option should work fine for attaching your rest results.
Re: How to save a file with a candidate
A belated thank you, we got our PDF file postings to work.
Re: How to save a file with a candidate
Hi, I have tried both approaches, targeting /raw and sending file as multipart/form-data content type, and also application/json with file content as encoded string as described here. I have added all other parameters as described, but each time I just get response 400 Bad Request. No other explanation what exactly is wrong. Does anybody have any hint how to localize what exactly am I not setting correctly in request? Thanks in advance!
Re: How to save a file with a candidate
Hello @sdjukic , this may be to late but I could help you.
Are you using php or C# ?
Did you properly build your payload ?
Here are the parameters I use (php code) :
Are you using php or C# ?
Did you properly build your payload ?
Here are the parameters I use (php code) :
Code: Select all
params = array(
'method' => 'PUT',
'file' => $filename,
'type' => 'Resume',
'description' => 'Candidate Resume',
'headers' => array(
'accept' => 'application/json',
'content-type' => 'multipart/form-data;boundary=' . $boundary,
),
'body' => $payload,
);
Re: How to save a file with a candidate
Hello @lokuber, thanks for your answer!
I was actually working on other features, I still did not make this work. I am using Java / Spring and am instantiating Spring's RestTemplate class. I was trying to replicate all that I read here but I seem to be failing.
I see that header is a bit different then mine. I did not set "accept" part, and I am also missing "boundary", is this boundary mandatory? What would be value of boundary? I can paste Java code if it helps?
Thanks once again!
I was actually working on other features, I still did not make this work. I am using Java / Spring and am instantiating Spring's RestTemplate class. I was trying to replicate all that I read here but I seem to be failing.
I see that header is a bit different then mine. I did not set "accept" part, and I am also missing "boundary", is this boundary mandatory? What would be value of boundary? I can paste Java code if it helps?
Thanks once again!
Re: How to save a file with a candidate
Hi sdjukic, have you gotten it to work yet?sdjukic wrote:Hello @lokuber, thanks for your answer!
I was actually working on other features, I still did not make this work. I am using Java / Spring and am instantiating Spring's RestTemplate class. I was trying to buy vigrx plus to replicate all that I read here but I seem to be failing.
I see that header is a bit different then mine. I did not set "accept" part, and I am also missing "boundary", is this boundary mandatory? What would be value of boundary? I can paste Java code if it helps?
Thanks once again!
-
- User
- Posts: 1
- Joined: Thu Apr 18, 2019 5:20 pm
- Contact:
Re: How to save a file with a candidate
The 'Save Candidate configuration' will overwrite the previously.ColinIC wrote: ↑Wed Oct 13, 2432 9:24 amHi jkaashoek,
A pdf will be done the same way that a word document would be parsed into the system. The main issue is that the pdf has selectable text that can be parsed. If the pdf is essentially an image file then it will not function properly.
Here is a link that runs through the entire process. The most commonly missed issue when running through this is that the body is setup as a multipart/form attachment when adding the file to be parsed.
http://developer.bullhorn.com/articles/ ... fromresume
Hope this helps.