Material Sheet Weekly

Materialsheetweekly

ParameterTypeDescription
[IN] Parameters described in Overview
CompanyString[IN] The users default company number for the companies list
ActionString[IN] Identifier for the list requested
ResourceString[IN] Identifier for the resource context
DateDate[IN] dd/mm/yyyy materials entry date
jobphaseString[IN] Identifier for jobphase
Chargecode [OPTIONAL]String[IN] Identifier for chargecode
Taskdesc [OPTIONAL]String[IN] Identifier for taskdesc
Workflow [OPTIONAL]String[IN] Identifier for workflow
ResponseXML/JSON[OUT] An XML tree / JSON string containing the list of materials entered for a specific date and resource

Description

Calling the timesheets API with an action of materialsheetweekly retrieves the materials entered for a specific date.

Return Values

Response – Material entries for a given date and resource context.

The structure of the response is:

<materialsheetweekly morepages="False" totalpages="1" totalrows="1">
<materialsheetweeklydata>
<array_materialsheetweeklychargecode/>
<array_materialsheetweeklyentryno>3836</array_materialsheetweeklyentryno>
<array_materialsheetweeklyjobphase>1/00000695.001</array_materialsheetweeklyjobphase>
<array_materialsheetweeklymaterial>1/A3CC</array_materialsheetweeklymaterial>
<array_materialsheetweeklymaterialname>A3 Colour Copies</array_materialsheetweeklymaterialname>
<array_materialsheetweeklymatsheetinternal>0</array_materialsheetweeklymatsheetinternal>
<array_materialsheetweeklyquantity>2</array_materialsheetweeklyquantity>
<array_materialsheetweeklyrelation>1/00000695.001&#35;&#35;&#35;&#35;0
</array_materialsheetweeklyrelation>
<array_materialsheetweeklystatus>U</array_materialsheetweeklystatus>
<array_materialsheetweeklytaskdesc/><array_materialsheetweeklyworkflow/>
<array_materialsheetweeklyapprovernotes/>
<array_materialsheetweeklyphasenumbersimple>51.009</array_materialsheetweeklyphasenumbersimple>
<array_materialsheetweeklysubmitternotes/>
</materialsheetweeklydata>
</materialsheetweekly>
{
    "errormessage": "",
    "responsecode": 1,
    "pagerows": 0,
    "totalrows": 1,
    "responsestatus": "OK",
    "success": true,
    "responsemessage": "",
    "errorcode": 0,
    "totalpages": 1,
    "pagenumber": 1,
    "data": [
        {
            "array_materialsheetweeklychargecode": "",
            "array_materialsheetweeklystatus": "U",
            "array_materialsheetweeklymaterialname": "A3 Colour Copies",
            "array_materialsheetweeklymaterial": "1/A3CC",
            "array_materialsheetweeklyentryno": 3836,
            "array_materialsheetweeklyjobphase": "1/00000695.001",
            "array_materialsheetweeklytaskdesc": "",
            "array_materialsheetweeklyrelation": "1/00000695.001####0",
            "array_materialsheetweeklyquantity": 2,
            "array_materialsheetweeklymatsheetinternal": 0,
            "array_materialsheetweeklyworkflow": "",
            "array_materialsheetweeklyapprovernotes": "",	
            "array_materialsheetweeklysubmitternotes": "",
            "array_materialsheetweeklyphasenumbersimple": "51.009"
        }
    ]
}