posting Education details

Have a question about Bullhorn's HTTP based APIs? You've found the right place.

API Update [posted on December 13, 2012]:

This version of the Bullhorn APIs should no longer be used.

All new work should be done using Bullhorn's REST or Web Services APIs. For more information please visit: http://developer.bullhorn.com/documentation

Bullhorn REST API provides a simpler and faster way for developers to build applications that interact with the Bullhorn platform and is used by Bullhorn Inc. to develop features of the Bullhorn ATS/CRM application.

Of the BullhornSTAFFING HTTP API interfaces listed below, our analysis shows that the following are most commonly used by developers:

Resume Parsing API
Published Job Data (XML)
The interface to these will continue to work as is because Bullhorn will replace the back end to use REST API. The URLs for these 2 specific APIs may change in the 2nd half of 2013; developers may require to update their applications to use the new URLs.

Moderators: StaffingSupport, s.emmons

apsmith
Site Admin
Posts: 2051
Joined: Wed Dec 31, 1969 8:00 pm

Re: posting Education details

Post by apsmith » Fri Feb 11, 2011 1:32 pm

Venki,

If you need to create a second instance of the template, simply change the instance node from 1 to 2 or above.

Code: Select all

<INSTANCE>1</INSTANCE>
Andrew Smith
Director, Technical Operations
Developer Forum Admin

venki
User
Posts: 17
Joined: Tue Feb 08, 2011 11:26 am

Re: posting Education details

Post by venki » Sat Feb 12, 2011 1:52 pm

Hi
If i post below xml using asp code,
it inserts only one and first instance in the bullhorn application.

it skips to insert remaining xml data ( from the second instance).
every time only one instance XML is posted .if i want to post multiple xml data with different instance values how can I post?

<USERTEMPLATE>
<ACTION>WRITE</ACTION>
<USERID>1234</USERID>
<USERTEMPLATEID>5678</USERTEMPLATEID>
<INSTANCE>1</INSTANCE>
<USERTEMPLATEATTRIBUTES>
<USERTEMPLATEATTRIBUTE>
<USERTEMPLATEATTRIBUTEID>58</USERTEMPLATEATTRIBUTEID>
<VALUE>What's my name?</VALUE>
</USERTEMPLATEATTRIBUTE>
<USERTEMPLATEATTRIBUTE>
<USERTEMPLATEATTRIBUTEID>59</USERTEMPLATEATTRIBUTEID>
<VALUE>Test</VALUE>
</USERTEMPLATEATTRIBUTE>
</USERTEMPLATEATTRIBUTES>

<INSTANCE>2</INSTANCE>
<USERTEMPLATEATTRIBUTES>
<USERTEMPLATEATTRIBUTE>
<USERTEMPLATEATTRIBUTEID>58</USERTEMPLATEATTRIBUTEID>
<VALUE>What's my nameddddd?</VALUE>
</USERTEMPLATEATTRIBUTE>
<USERTEMPLATEATTRIBUTE>
<USERTEMPLATEATTRIBUTEID>59</USERTEMPLATEATTRIBUTEID>
<VALUE>Test123</VALUE>
</USERTEMPLATEATTRIBUTE>
</USERTEMPLATEATTRIBUTES>
</USERTEMPLATE>

apsmith
Site Admin
Posts: 2051
Joined: Wed Dec 31, 1969 8:00 pm

Re: posting Education details

Post by apsmith » Mon Feb 14, 2011 10:24 am

Venki,

You can only post one at a time, if you need to post multiple, just loop through your code and send multiple requests with different instance IDs.
Andrew Smith
Director, Technical Operations
Developer Forum Admin

venki
User
Posts: 17
Joined: Tue Feb 08, 2011 11:26 am

Re: posting Education details

Post by venki » Mon Feb 14, 2011 2:35 pm

Hi,

I tried in loop but only first record is posted.
Please find the code below.it is written in asp.
private label id and encrypted api (not made public)
Here I send employeeid value as instance.
first instance value was posted.
but from the second instance ,it was not posted.
Please let me know, any other method is there to post multiple instances?

<body>
<form name="redirectionForm" id="redirectionForm" action="http://sl1api.bullhornstaffing.com/Bull ... ateAPI.cfm" method="POST">
<input name="privateLabelID" value="<%=%>" style="Visibility:hidden;"/>
<input name="encryptedAPIKey" value="<%=%>" <br>
<% ce1=ce1 & "<USERTEMPLATE>"&strCRLF
ce1=ce1 & "<ACTION>WRITE</ACTION>" & strCRLF
ce1=ce1 & "<USERID>910</USERID>" & strCRLF
ce1=ce1 & "<USERTEMPLATEID>248</USERTEMPLATEID>"&strCRLF
While Not rs.eof
ce= ce1 & ce & "<INSTANCE>" & cint(rs("Empid")) & "</INSTANCE>"&strCRLF
ce=ce & "<USERTEMPLATEATTRIBUTES>"&strCRLF
ce=ce & "<USERTEMPLATEATTRIBUTE>"&strCRLF
ce=ce & "<USERTEMPLATEATTRIBUTEID>10252</USERTEMPLATEATTRIBUTEID>"&strCRLF
ce=ce & "<VALUE>ccc</VALUE>"&strCRLF
ce=ce & "</USERTEMPLATEATTRIBUTE>"&strCRLF
ce=ce & "</USERTEMPLATEATTRIBUTES>"&strCRLF
ce1=""
rs.movenext
Wend
ce5=ce & "</USERTEMPLATE>"&strCRLF %>

apsmith
Site Admin
Posts: 2051
Joined: Wed Dec 31, 1969 8:00 pm

Re: posting Education details

Post by apsmith » Mon Feb 14, 2011 3:29 pm

Can you post the PLID that you are using, I will check your data to see if I can see the issue.
Andrew Smith
Director, Technical Operations
Developer Forum Admin

venki
User
Posts: 17
Joined: Tue Feb 08, 2011 11:26 am

Re: posting Education details

Post by venki » Tue Feb 15, 2011 2:10 pm

Hi
OK. PLID is 4344

apsmith
Site Admin
Posts: 2051
Joined: Wed Dec 31, 1969 8:00 pm

Re: posting Education details

Post by apsmith » Tue Feb 15, 2011 2:21 pm

Venki,

For this userID (910), I see very high instance IDs: 82,139,157.

These numbers should be sequential, 1,2,3,4,5,6,7,8,9,etc.....

Why aren't you just posting these are simple iterative numbers?
Andrew Smith
Director, Technical Operations
Developer Forum Admin

venki
User
Posts: 17
Joined: Tue Feb 08, 2011 11:26 am

Re: posting Education details

Post by venki » Wed Feb 16, 2011 1:43 am

Hi,
Ok. I will create less instance IDs and these numbers in sequential.
one more Clarification please

I want to post education data in bullhorn site from Asp Code using legacy API .
Can you please tell me is it possible to post data for education to bullhorn site from Asp Code using legacy API .

apsmith
Site Admin
Posts: 2051
Joined: Wed Dec 31, 1969 8:00 pm

Re: posting Education details

Post by apsmith » Wed Feb 16, 2011 11:45 am

Venki,

The APIs are HTTP based, so if your code can call the API page, it should work, but how you call the page is up to you.
Andrew Smith
Director, Technical Operations
Developer Forum Admin

venki
User
Posts: 17
Joined: Tue Feb 08, 2011 11:26 am

Re: posting Education details

Post by venki » Wed Feb 16, 2011 12:20 pm

Hi
I want to post data for education in bullhorn site from Asp Code using legacy API and XMLHttpRequest

xmlhttp.Open "POST", "http://sl1api.bullhornstaffing.com/Bull ... ateAPI.cfm", False
xmlhttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
xmlhttp.send(ce1)


for the data to be posted we need private labelid and encryptedAPIKey to be passed with xml.
Is there any structure to be used for formation of xml using private labelid and encrypted api key.
if there,Please let me know the structure with privatelabelid and encryptedAPIKey using below xml

I have formed xml in asp below

strCRLF=chr(13)+chr(10)
ce1=ce1 & "<USERTEMPLATE>"&strCRLF
ce1=ce1 & "<ACTION>WRITE</ACTION>" & strCRLF
ce1=ce1 & "<USERID>910</USERID>" & strCRLF
ce1=ce1 & "<USERTEMPLATEID>12</USERTEMPLATEID>"&strCRLF
ce1= ce1 & "<INSTANCE>1</INSTANCE>"&strCRLF
ce1=ce1 & "<USERTEMPLATEATTRIBUTES>"&strCRLF
ce1=ce1 & "<USERTEMPLATEATTRIBUTE>"&strCRLF
ce1=ce1 & "<USERTEMPLATEATTRIBUTEID>3573</USERTEMPLATEATTRIBUTEID>"&strCRLF
ce1=ce1 & "<VALUE>2003-06-19</VALUE>"&strCRLF
ce1=ce1 & "</USERTEMPLATEATTRIBUTE>"&strCRLF
ce1=ce1 & "</USERTEMPLATEATTRIBUTES>"&strCRLF
ce1=ce1 & "</USERTEMPLATE>"&strCRLF %>

apsmith
Site Admin
Posts: 2051
Joined: Wed Dec 31, 1969 8:00 pm

Re: posting Education details

Post by apsmith » Wed Feb 16, 2011 1:17 pm

Venki,

The PLID and Encryptionkey are not part of the XML that you send, they are separate URL params.
Andrew Smith
Director, Technical Operations
Developer Forum Admin

venki
User
Posts: 17
Joined: Tue Feb 08, 2011 11:26 am

Re: posting Education details

Post by venki » Thu Feb 17, 2011 6:19 am

Hi,
I used below xml to post education data.but I cannot view the data in Bullhorn site after posting.
Can you please tell me the error.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body xmlns:impl="http://www.bullhornstaffing.com/Bullhor ... PITest.cfm">
<impl:File xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<privateLabelID xsi:type="xsd:double">XXX</privateLabelID>
<apiEncryptionKey xsi:type="xsd:string">XXXXXXXXXXXXXXXXXX</apiEncryptionKey>
<USERTEMPLATE>
<ACTION>WRITE</ACTION>
<USERID>910</USERID>
<USERTEMPLATEID>12</USERTEMPLATEID>
<INSTANCE>9</INSTANCE>
<USERTEMPLATEATTRIBUTES>
<USERTEMPLATEATTRIBUTE>
<USERTEMPLATEATTRIBUTEID>3573</USERTEMPLATEATTRIBUTEID>
<VALUE>2004-06-27</VALUE>
</USERTEMPLATEATTRIBUTE>
</USERTEMPLATEATTRIBUTES>
</USERTEMPLATE>
</impl:File>
</soapenv:Body>
</soapenv:Envelope>

apsmith
Site Admin
Posts: 2051
Joined: Wed Dec 31, 1969 8:00 pm

Re: posting Education details

Post by apsmith » Thu Feb 17, 2011 10:05 am

Venki,

None of these values are saved in the database, are you getting success messages?
Andrew Smith
Director, Technical Operations
Developer Forum Admin

venki
User
Posts: 17
Joined: Tue Feb 08, 2011 11:26 am

Re: posting Education details

Post by venki » Thu Feb 17, 2011 10:27 am

Hi,
I am not getting success message.
Please let me know why data is not saved

apsmith
Site Admin
Posts: 2051
Joined: Wed Dec 31, 1969 8:00 pm

Re: posting Education details

Post by apsmith » Fri Feb 18, 2011 10:44 am

Venki,

I cannot say for sure what is happening, are you getting a response code back at all? a 200?
Andrew Smith
Director, Technical Operations
Developer Forum Admin

Locked