API Notes does not display under candidate's "Last Note"

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
gokonski
User
Posts: 78
Joined: Thu Nov 13, 2008 2:21 pm
Location: Opole, PL
Contact:

API Notes does not display under candidate's "Last Note"

Post by gokonski » Mon Jan 11, 2010 6:57 pm

Hey,

Why is the "Last Note" under assosiated candidate blank ?
tearsheet.png
Tearsheet with assosiated candidate w.out Last Note
tearsheet.png (8.29 KiB) Viewed 15226 times
There are 10 notes added to the candidate in total.
notes.png
10 notes added to the candidate mentioned in 1st image
notes.png (16.07 KiB) Viewed 15232 times
Thanks

PS: Array that is being sent to BH while saving the Note:

Code: Select all

				array(
						'action'	=> 'Note',
						'commentingPersonID' => $this->_recruiterUserID,
						'dateAdded'	=> date('Y-m-s H:i:s'),
						'comments'	=> $comments,
						'minutesSpent' => 0,
						'isDeleted'	=> 0,
						'personReferenceID'	=> intval($userID)
					)

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

Re: API Notes does not display under candidate's "Last Note"

Post by apsmith » Tue Jan 12, 2010 9:30 am

gokonski,

To confirm, all of these notes are being added by the API?
Andrew Smith
Director, Technical Operations
Developer Forum Admin

gokonski
User
Posts: 78
Joined: Thu Nov 13, 2008 2:21 pm
Location: Opole, PL
Contact:

Re: API Notes does not display under candidate's "Last Note"

Post by gokonski » Tue Jan 12, 2010 9:36 am

Yes

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

Re: API Notes does not display under candidate's "Last Note"

Post by apsmith » Tue Jan 12, 2010 10:24 am

gokonski,

This functionality is working as designed. The field that you are looking at on the list is a field on the candidate record (dateLastComment). Our application automatically updates this field when a note is added, but the API does not have this level of functionality built in because many notes from the API would not want to update that field. To accomplish what you are looking to do, you should fire an update to that field via the API when adding a note.
Andrew Smith
Director, Technical Operations
Developer Forum Admin

gokonski
User
Posts: 78
Joined: Thu Nov 13, 2008 2:21 pm
Location: Opole, PL
Contact:

Re: API Notes does not display under candidate's "Last Note"

Post by gokonski » Tue Jan 12, 2010 10:56 am

apsmith,

Thank you.

gokonski
User
Posts: 78
Joined: Thu Nov 13, 2008 2:21 pm
Location: Opole, PL
Contact:

Re: API Notes does not display under candidate's "Last Note"

Post by gokonski » Wed Jan 13, 2010 9:01 am

Hey, I am unable to update dateLastComment field using both old and new API.

Old api code:

Code: Select all

	
			$ch = curl_init();
			
			# ----
			$post = array();
			$post['userid'] 		 = $input['userID'];
			$post['datelastcomment'] = date('Y-m-s H:i:s');
			# ----
		
			$xml .= '<root><BHCandidate>';
				foreach ($post as $key => $value)
					$xml .= '<' . strtoupper($key) . '>' . $value . '</' . strtoupper($key) . '>';
			$xml .= '</BHCandidate></root>';
		
			$post['xmlData'] = $xml;
			$post['privateLabelID']  = $this->_privateLabelID; 
			$post['encryptedAPIKey'] = $this->_encryptedAPIKey;
			# ----
		
			curl_setopt($ch, CURLOPT_URL, "http://www.bullhornstaffing.com/BullhornStaffing/API/UpdateProfileAPI.cfm");
		 	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
		 	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
			curl_setopt($ch, CURLOPT_POST, 1);
			curl_setopt($ch, CURLOPT_POSTFIELDS, $post); 
		
			$res = curl_exec($ch);
		
			curl_close($ch);
and that returns SUCCESS msg but field dateLastComment is not updated.

New API:

Code: Select all

	$res = $this->_soapClient->call('save', 
			array(
				'session'	=> $this->_session,
				'dto xsi:type="ns4:candidateDto" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://candidate.entity.bullhorn.com/"'	=>  
					array(		
						'userID' => intval($input['userID']),
						'dateLastComment' => date('Y-m-s H:i:s'),
						'dateAdded' => $input['dateAdded'],
						'comments' => $input['comments'],	
						'employeeType' => $input['employeeType'],
						'isEditable' => $input['isEditable'],
						'isDeleted' => $input['isDeleted'],
						'ownerID' => $input['ownerID'],
						'preferredContact' => $input['preferredContact'],
						'status' => $input['status'],
						'userTypeID' => $input['userTypeID']		
						'isDayLightSavings' => $input['isDayLightSavings'],
						'categoryID' => $input['categoryID'],
						'massMailOptOut' => $input['massMailOptOut'],
						'timeZoneOffsetEST' => $input['timeZoneOffsetEST'],
						'username' => $input['username'],
						'password' => $input['password'],
						'travelLimit' => $input['travelLimit'],			
						'workAuthorized' => $input['workAuthorized'],
						'ownerCorporationID' => $input['ownerCorporationID'],
						'dayRate'	=> $input['dayRate'],
						'dayRateLow'=> $input['dayRateLow'],
						'salaryLow' => $input['salaryLow'],
						'salary' => $input['salary'],
						'willRelocate' => $input['willRelocate'],
						'address' => array(
							'countryID' => $input['address']['countryID'],
							'address1'  => $input['address']['address1'],
							'address2' 	=> $input['address']['address2'],
							'city' 		=> $input['address']['city'],
							'state' 	=> $input['address']['state'],
							'zip' 		=> $input['address']['zip']
						),
					)
			),
			self::namespace);
that returns

Code: Select all

[message] => Error while commiting the transaction

...

 [cause] => Array
                        (
                            [stackTrace] => Array
                                (
                                    [frame] => Array



there is no explanation message.

Do I have to send all these fields to BH in order to update only 1 field ??
I cannot remove any of them, all are required.

Ex: if I remove timeZoneOffsetEST from the array() I will get:

Code: Select all

[message] => not-null property references a null or transient value: com.bullhorn.entity.candidate.Candidate.timeZoneOffsetEST
Thanks. :o

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

Re: API Notes does not display under candidate's "Last Note"

Post by apsmith » Wed Jan 13, 2010 3:34 pm

gokonski,

It looks as though there is a bug that is causing this field to not be editable or returned by the FIND command right now. I have filed a bug and Development should fix it in an upcoming release.
Andrew Smith
Director, Technical Operations
Developer Forum Admin

gokonski
User
Posts: 78
Joined: Thu Nov 13, 2008 2:21 pm
Location: Opole, PL
Contact:

Re: API Notes does not display under candidate's "Last Note"

Post by gokonski » Thu Jan 28, 2010 7:33 am

Hey,

any plans when will the patched API be realesed ?

Thanks

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

Re: API Notes does not display under candidate's "Last Note"

Post by apsmith » Thu Jan 28, 2010 12:54 pm

gokonski,

I do not have a firm date in place yet, but it should be sometime next month.
Andrew Smith
Director, Technical Operations
Developer Forum Admin

gokonski
User
Posts: 78
Joined: Thu Nov 13, 2008 2:21 pm
Location: Opole, PL
Contact:

Re: API Notes does not display under candidate's "Last Note"

Post by gokonski » Wed Apr 14, 2010 1:59 pm

Hey Andrew,

Any chances of getting this done ? It is really important to our customer.

Thanks Greg.

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

Re: API Notes does not display under candidate's "Last Note"

Post by apsmith » Wed Apr 14, 2010 2:46 pm

Greg,

I do not have any firm release date, but will post as soon as I have one.
Andrew Smith
Director, Technical Operations
Developer Forum Admin

gokonski
User
Posts: 78
Joined: Thu Nov 13, 2008 2:21 pm
Location: Opole, PL
Contact:

Re: API Notes does not display under candidate's "Last Note"

Post by gokonski » Wed May 26, 2010 9:09 pm

Hey, any updates :) ?

gokonski
User
Posts: 78
Joined: Thu Nov 13, 2008 2:21 pm
Location: Opole, PL
Contact:

Re: API Notes does not display under candidate's "Last Note"

Post by gokonski » Thu Jul 01, 2010 11:20 am

Hey

just checking, cause it is still pretty important to us/our clients.

Any chances that this one will be done in close future?

gokonski
User
Posts: 78
Joined: Thu Nov 13, 2008 2:21 pm
Location: Opole, PL
Contact:

Re: API Notes does not display under candidate's "Last Note"

Post by gokonski » Fri Oct 01, 2010 4:54 am

yeah, so its been a while :) any news on this one ?

Post Reply