Resource List

Resourcelist

Parameter

Type

Description

[IN]

Parameters described in Overview

Company

String

[IN]

The company context

Action

String

[IN]

Identifier for the list requested

Userid

String

[IN]

allactive/allinactive

Response

XML/JSON

[OUT]

An XML tree / JSON string containing resources the user has access to

Description

Calling the timesheets API with an action of resourcelist retrieves a list of resource codes and associated resource names.

Return Values

Response – List of resources.

The structure of the response is:

<resources morepages="False" totalpages="1" totalrows="1">
<resource resources_uuid="9E8542973175495794B762821B4BEDC1">
<resources_resourcecode>1/JB</resources_resourcecode>
<resources_resourcename>Jo Bloggs</resources_resourcename>
</resource>
</resources>
{
"errormessage": "",
   	 "responsecode": 1,
    	"pagerows": 0,
    	"totalrows": 1,
   	 "responsestatus": "OK",
    	"success": true,
    	"responsemessage": "",
    	"errorcode": 0,
    	"totalpages": 1,
    	"pagenumber": 1,
    	"data": [
        	{
           	 "resources_uuid": "9E854297-3175-4957-94B7-62821B4BEDC1",
            	"resources_resourcecode": "1/JB",
            	"resources_resourcename": "Jo Bloggs"       
        	 }
    	]
}