HelpSpot Help Desk Software | HelpSpot Blog | HelpSpot Support

Lastname field not appearing in request_history.item


#1

when I do a http xml request with method request.get, an xml is returned that pretty much is according to spec [1], however, for the request_history.item nodes, I do not receive a lastname field. The (partial) response is like:

	<item>
		<xRequestHistory>xxx</xRequestHistory>
		<xRequest>xxxxx</xRequest>
		<xPerson>x</xPerson>
		<dtGMTChange>xxxxxxxxx</dtGMTChange>
		<fInitial>x</fInitial>
		<fNoteIsHTML>x</fNoteIsHTML>
		<sRequestHistoryHash />
		<tNote>x</tNote>
		<files />
		<firstname>x</firstname>
	</item>

Is this a bug or should I refine my request?

[1] http://www.helpspot.com/helpdesk/index.php?pg=kb.page&id=163#request.get


#2

There is a last name filled in (the last name shows correctly in the request.sLastName element (and the request.fullname for that matter). However, for the individual items, no lastname element is present.


#3

Hi Rikkert,

Since the public API is more open we allow you to control all fields that are returned by it’s API calls. To enable that last name value go to Admin->Settings->Web Service API, click request.get in the public request fields and check the box next to “request_history.lastname”

That should do it.