Timesheetweeklydate
Parameter | Type | Description |
---|---|---|
[IN] Parameters described in Overview | ||
Company | String | [IN] The users default company number for the companies list |
Action | String | [IN] Identifier for the list requested |
Resource | String | [IN] Identifier for the resource context |
Date | Date | [IN] dd/mm/yyyy |
Chargecode | String | [IN] Identifier for chargecode |
Jobphase | String | [IN] Identifier for jobphase |
Workflow [OPTIONAL] | String | [IN] Identifier for workflow |
Taskdesc [OPTIONAL] | String | [IN] Identifier for taskdesc |
Response | XML/JSON | [OUT] An XML tree / JSON string containing the list of real/pending timesheets/materials for the date |
Description
Calling the timesheets API with an action of timesheetweeklydate retrieves real or pending timesheet and material entries for the date and other parameters.
Return Values
Response – Real or pending timesheet and material entries for the date.
The structure of the tree is:
<timesheetweeklydate morepages="False" totalpages="1" totalrows="1">
<timesheetweeklydatedata>
<array_timesheetweeklydatechargecode>1/ART</array_timesheetweeklydatechargecode>
<array_timesheetweeklydatechargename>Artwork</array_timesheetweeklydatechargename>
<array_timesheetweeklydatedated>2015-01-13</array_timesheetweeklydatedated>
<array_timesheetweeklydatedeleteable>false</array_timesheetweeklydatedeleteable>
<array_timesheetweeklydateedittable>false</array_timesheetweeklydateedittable>
<array_timesheetweeklydateentryno>0</array_timesheetweeklydateentryno>
<array_timesheetweeklydatehoursnormal>5</array_timesheetweeklydatehoursnormal>
<array_timesheetweeklydatehourstotal>5</array_timesheetweeklydatehourstotal>
<array_timesheetweeklydatejobphase>1/00000530.003</array_timesheetweeklydatejobphase>
<array_timesheetweeklydatestatuscode/>
<array_timesheetweeklydatestatusname/>
<array_timesheetweeklydatesubmittable>false</array_timesheetweeklydatesubmittable>
<array_timesheetweeklydatetimerentrynonormal>0</array_timesheetweeklydatetimerentrynonormal>
<array_timesheetweeklydatetimerstatusnormal/>
<array_timesheetweeklydatetimertimenormal>0</array_timesheetweeklydatetimertimenormal>
<array_timesheetweeklydatetimesheetinternal>840</array_timesheetweeklydatetimesheetinternal>
<array_timesheetweeklydatetype>TIMESHEET</array_timesheetweeklydatetype>
<array_timesheetweeklydateunique/>
<array_timesheetweeklydateuuid>658207BECCA40A45B2D320E176F01501</array_timesheetweeklydateuuid><array_timesheetweeklydateworkdone/>
<array_timesheetweeklydateworkflow/>
</timesheetweeklydatedata>
</timesheetweeklydate>
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 1,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"array_timesheetweeklydatechargecode": "1/ART",
"array_timesheetweeklydatechargename": "Artwork",
"array_timesheetweeklydatedated": "2015-01-13",
"array_timesheetweeklydatedeleteable": false,
"array_timesheetweeklydateedittable": false,
"array_timesheetweeklydateentryno": 0,
"array_timesheetweeklydatehoursnormal": 5,
"array_timesheetweeklydatehourstotal": 5,
"array_timesheetweeklydatejobphase": "1/00000530.003",
"array_timesheetweeklydatestatuscode": "",
"array_timesheetweeklydatestatusname": "",
"array_timesheetweeklydatesubmittable": false,
"array_timesheetweeklydatetimerentrynonormal": 0,
"array_timesheetweeklydatetimerstatusnormal": "",
"array_timesheetweeklydatetimertimenormal": 0,
"array_timesheetweeklydatetimesheetinternal": 840,
"array_timesheetweeklydatetype": "TIMESHEET",
"array_timesheetweeklydateunique": "",
"array_timesheetweeklydateuuid": "658207BECCA40A45B2D320E176F01501",
"array_timesheetweeklydateworkdone": "\n",
"array_timesheetweeklydateworkflow": ""
} ]
}