CandidateEducation Saving field Issue

Forum for users and developers of Bullhorn's Webservices API suite

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
kenia.alemanosorio
User
Posts: 11
Joined: Tue Aug 09, 2011 2:41 pm

CandidateEducation Saving field Issue

Post by kenia.alemanosorio » Wed Aug 17, 2011 11:45 am

I'm trying to retrieve the CandidateEducation DTO, change one field CustomInt1 and save it back thru the webServices. I've successfully done this with the Candidate entity, but having issue with
CandidateEducation entity, the application runs smoothly and returns no errors but never updates that field.
Please help. I've attached my code in case it helps.
Thanks,


Dim intCandidateID As Integer = XXXX
Dim candidateidt As String = "XXXX"
UpdateBHWSDLCandidateEducation(intCandidateID, "CandidateEducation", "candidate.id=" + candidateidt + "")

Function UpdateBHWSDLCandidateEducation(ByVal userID As Integer, ByVal entityName As String, ByVal where As String) As Integer
session = service.startSession(BHWDSLUser, BHWDSLPassword, BHWDSLapiKey)

Try
Dim candidateEducationDTO As New BHServiceURL.candidateEducationDto

Dim myQuery As BHServiceURL.dtoQuery = New BHServiceURL.dtoQuery()
myQuery.entityName = entityName
myQuery.where = where
myQuery.maxResults = 10
myQuery.maxResultsSpecified = True

Dim qResult As BHServiceURL.apiQueryResult = service.query(session, myQuery)
Dim currentSession As BHServiceURL.apiSession = qResult.session

Dim x As Integer = 0
For Each x In qResult.ids

Dim candidateEducation As BHServiceURL.apiFindResult = service.find(currentSession, entityName, x)
currentSession = candidateEducation.session
Dim thisCandidateEducation As BHServiceURL.candidateEducationDto = candidateEducation.dto
Dim CustomInt As Integer = thisCandidateEducation.customInt1

If CustomInt = 0 Then
thisCandidateEducation.customInt1 = 1
Else
thisCandidateEducation.customInt1 = 0
End If

Dim results As BHServiceURL.apiSaveResult = service.save(currentSession, thisCandidateEducation)
currentSession = results.session
Next
Catch ex As Exception
SendErrorNotificationEmailPrivate("In Education:" + " " + where + ex.ToString)
Return -1
End Try
Return 0

End Function

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

Re: CandidateEducation Saving field Issue

Post by apsmith » Tue Aug 23, 2011 3:42 pm

Kenia,

What corporation ID are you posting this data to?
Andrew Smith
Director, Technical Operations
Developer Forum Admin

kenia.alemanosorio
User
Posts: 11
Joined: Tue Aug 09, 2011 2:41 pm

Re: CandidateEducation Saving field Issue

Post by kenia.alemanosorio » Thu Sep 01, 2011 4:04 pm

1133

jdonnelly
User
Posts: 192
Joined: Wed Feb 09, 2011 4:57 pm

Re: CandidateEducation Saving field Issue

Post by jdonnelly » Mon Sep 19, 2011 11:47 am

Hello Kenia,

Sorry for the delay in the response. The customInt1 field for education history is currently not enabled for your corporations private label. Please have an authorized contact open a ticket with Bullhorn to enable this field. Please let me know if you have any further questions.

Thanks,
Jon Donnelly
Technical Support Engineer
Developer Forum Admin
B U L L H O R N
support@bullhorn.com

Post Reply