timesheetweeklysettings
Parameter | Type |
---|---|
company | String |
ModelStructure | String |
style | String |
Date [OPTIONAL] | Date |
Response | XML / JSON |
Description
Calling the control API with a modelstructure of timesheetweeklysettings retrieves a list of settings for weekly timesheets. Passing in the optional date parameter returns a variable indicating that data is this week’s data.
Return Values
Response – List of weekly timesheet settings for the user/company context.
The structure of the response is:
<companies morepages="False" totalpages="1" totalrows="1">
<company control_uuid="F1BECF29058A4FC28437728721F89372">
<control_estimatetaskdesc>true</control_estimatetaskdesc>
<control_workflowintegrated>true</control_workflowintegrated>
<control_hidejobstages>true</control_hidejobstages>
<control_hidephasestages>false</control_hidephasestages>
<control_number>1</control_number>
<control_overtime1text>Overtime</control_overtime1text>
<control_overtime2text>W/E</control_overtime2text>
<control_guitmhidewebworkdone>false</control_guitmhidewebworkdone>
<control_tsforceworkdone>false</control_tsforceworkdone>
<control_guitmhidematerial>false</control_guitmhidematerial>
<variable_dateisthisweek__control_number>true</variable_dateisthisweek__control_number>
</company>
</companies>
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 1,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"control_uuid": "F1BECF29058A4FC28437728721F89372",
"control_estimatetaskdesc": true,
"control_workflowintegrated": true,
"control_hidejobstages": true,
"control_hidephasestages": false,
"control_number": 1,
"control_overtime1text": "Overtime",
"control_overtime2text": "W/E",
"control_guitmhidewebworkdone": false,
"control_tsforceworkdone": false,
"control_guitmhidematerial": false,
"variable_dateisthisweek__control_number": true
}
]
}