Some Candidate Profiles not transferring from website to BH

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
ahertell
User
Posts: 2
Joined: Wed Dec 31, 1969 8:00 pm

Some Candidate Profiles not transferring from website to BH

Post by ahertell » Mon Nov 03, 2014 1:54 pm

Roughly one in twenty users who create a profile on our company website do not have the corresponding profile created in Bullhorn. These users seem to be notified of a successful profile creation / application via our website, but when the information is sent to Bullhorn, the call fails, the users are not given the 'candidate' role, and the corresponding profiles are not created in BH. There doesn't seem to be any continuity in the resume file size/type/naming attached to these failed profiles, and the timing of the failures seems to be random at this point. Any help would be greatly appreciated.

s.emmons
User
Posts: 333
Joined: Wed Dec 31, 1969 8:00 pm

Re: Some Candidate Profiles not transferring from website to BH

Post by s.emmons » Mon Nov 03, 2014 5:39 pm

Hi ahertell,

Are you receving an error message when these calls fail?

Can you post it (or them) here?
Sam Emmons
Enterprise Team Lead
BULLHORN
US Support 617-478-9126

ahertell
User
Posts: 2
Joined: Wed Dec 31, 1969 8:00 pm

Re: Some Candidate Profiles not transferring from website to BH

Post by ahertell » Tue Nov 04, 2014 1:43 pm

Hi Sam,

Thanks for the quick response. When the call fails, we don't get an error message, we just get no response at all so the resulting process fails on our end. I am including the info from one of the 'broken' candidates, hoping that you can track it down by time attempted. Note that we went back and manually entered this candidate info to get him into our system, but I'm hoping you can track down the original failure. See Below. Thanks, Austin.


Here’s the user information we were trying to push up :

Array ( [firstName] => Nike [lastName] => Onayemi [name] => Nike Onayemi [email] => nikecpa1@hotmail.com [username] => nikecpa1@hotmail.com_Hnb7 [status] => New Lead [ownerCorporationID] => 282 [ownerID] => 4182456 [userTypeID] => 35 [categoryID] => 60758 [source] => Indeed [password] => sSix4NYGQa [veteran] => N [gender] => F [ethnicity] => Black or African American (Not Hispanic or Latino) [disability] => N )

(note the password is a randomly generated password for Bullhorn, not a password for the Drupal site)

s.emmons
User
Posts: 333
Joined: Wed Dec 31, 1969 8:00 pm

Re: Some Candidate Profiles not transferring from website to BH

Post by s.emmons » Mon Nov 10, 2014 11:25 am

Hi Austin,

I haven't encountered any scenarios where no response is received at all. Can you try passing the same request using Postman or another REST client to see if it gives you an error or some other kind of response there?
Sam Emmons
Enterprise Team Lead
BULLHORN
US Support 617-478-9126

webtech4rindia
User
Posts: 11
Joined: Fri Dec 12, 2014 11:56 am

Re: Some Candidate Profiles not transferring from website to BH

Post by webtech4rindia » Fri Dec 12, 2014 2:53 pm

REST API issue on Candidate Post

We are trying to create Candidate profile in asp.net with Auth2.0. Gettting tokens and everything to fetch. But when we try to create Candidate always getting The remote server returned an error: (400) Bad Request.

Here is jason parsing code

//URL is :https://rest4.bullhornstaffing.com/rest ... oken=TOKEN
Json Body Like : "{"firstName":"Ajit","lastName":"Jha","email":"webtech4rindia@gmail.com","username":"webtech4rindia@gmail.com","name":"Ajit Jha","password":"xxxxxx","description":"test","category":{"id":"954755"},"userType":{"id":"35"},"dateAdded":"12/13/2014","employeeType":"Contract","isDeleted":false,"isEditable":true,"preferredContact":"Phone","status":null,"comments":"test","id":1,"address":{"address1":"B-332, Brij Vihar","city":"Ghaziabad","state":null,"zip":"22323","countryID":"2192"},"owner":{"id":null}}"
public string GetWebResponse(string Url, string jsonBody)
{

// Request data from BullHorn API
//send port request
var httprequest = WebRequest.Create(Url) as HttpWebRequest;
httprequest.Method = "POST";
httprequest.Headers["User-Agen"] =
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36";
httprequest.ContentType = "application/json";
httprequest.ContentLength = jsonBody.Length;
//httprequest.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
httprequest.Referer = "https://auth.bullhornstaffing.com";
//write parameters
StreamWriter requestWriter = new StreamWriter(httprequest.GetRequestStream());
requestWriter.Write(jsonBody);
requestWriter.Close();

//get response
var responseReader = new StreamReader(httprequest.GetResponse().GetResponseStream());

//get json string
var jsonString = responseReader.ReadToEnd();
return jsonString;
}


Let me know where we doing mistake.

srg.bdavis
User
Posts: 67
Joined: Thu Feb 20, 2014 4:52 pm

Re: Some Candidate Profiles not transferring from website to BH

Post by srg.bdavis » Fri Dec 12, 2014 5:35 pm

webtech4rindia,

The Bullhorn api http verbs are a little backwards. When you are creating a new entity, you need to use a PUT request instead of a POST. The POST is used to update an existing entity.

Brent

webtech4rindia
User
Posts: 11
Joined: Fri Dec 12, 2014 11:56 am

Re: Some Candidate Profiles not transferring from website to BH

Post by webtech4rindia » Mon Dec 15, 2014 11:51 am

Hello Brent,

Many Thanks. "Put" is require value to WebRequest.

One things, is there ANY LINK you have where we can see API different Error log. Or is API return back any Error to client. Something like for any require field. Exception on value casting.

Thanks,

Post Reply