Recent Phases List

Recentphaseslist

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
ResponseXML/JSON[OUT] An XML tree / JSON string containing the list of recent phases for the resource

Description

Calling the timesheets API with an action of recentphaseslist retrieves a list of the most recent phases used to create timesheets.

The structure of the response is:

<phases morepages="False" totalpages="1" totalrows="1">
<phase jobphase_uuid="8E49EB0885464C92BE1B72BD0DF8A0A2">
<jobphase_clientcode>1/A001</jobphase_clientcode>
<jobphase_displayorder />
<jobphase_jobandphase>1/00000586.001</jobphase_jobandphase>
<jobphase_phase>001</jobphase_phase>
<clients_clientname__jobphase_clientcode>
Proton Cars plc
</clients_clientname__jobphase_clientcode>
<variable_phasedescription1stline__jobphase_jobandphase>
tests phase
</variable_phasedescription1stline__jobphase_jobandphase>
<variable_jobnumber__jobphase_jobnumber>586
</variable_jobnumber__jobphase_jobnumber>
<variable_jobdescription1stline__jobphase_jobnumber>
to test recent
</variable_jobdescription1stline__jobphase_jobnumber>
</phase>
</phases>
{
    "responsecode": 1,
    "responsestatus": "OK",
    "errorcode": 0,
    "errormessage": "",
    "totalrows": 1,
    "totalpages": 1,
    "responsemessage": "",
    "pagerows": 0,
    "pagenumber": 1,
    "success": true,
    "data": [
         {
            "jobphase_uuid": "8E49EB0885464C92BE1B72BD0DF8A0A2",
            "jobphase_clientcode": "1/A001",
            "jobphase_displayorder": "",
            "jobphase_jobandphase": "1/00000586.001",
            "jobphase_phase": "001",
            "clients_clientname__jobphase_clientcode": "Proton Cars plc",
            "variable_phasedescription1stline__jobphase_jobandphase": "tests phase",
            "variable_jobnumber__jobphase_jobnumber": "586",
            "variable_jobdescription1stline__jobphase_jobnumber": "to test recent"
        }        
    ]
}