JC Employee
|
URL |
Verbs |
Function |
|---|---|---|
|
JCEmployee |
GET |
Query a list of JC Employees |
|
JCEmployee/<code> |
GET |
Query a single JC Employee by employee code |
|
JCEmployee/<code> |
POST |
Update a JC Employee* |
As at November 2013 only update of Trees and UDF's is implemented
Supported modifiers
|
Query String |
Definition |
Sample
|
Available |
|---|---|---|---|
|
Authenticate |
Authenticate against the JC Employee eTimesheet Password |
action=Authenticate&Password=Fred123! | |
| treeName and treeBranch | Return a list of JC Employees assigned to a nominated branch of a nominated tree | treeName=Colour-AUS&treeBranch=Blue | |
| isActive | Return a list of Active JC Employees | isActive=true | |
| includeFavouriteJobs | Include a list of Jobs that are marked as Favourites in eTimesheet Employee configuration | includeFavouriteJobs=true | 2017.1.0 |
Security Linked Menu
|
Menu Item
|
Located
|
|---|---|
| Employee Maintenance | System / Job Cost |
Sample XML Response
<?xml version="1.0" encoding="UTF-8"?>
<Employee>
<Code>CLARKC11</Code>
<Edition>13</Edition>
<Firstname>Craig</Firstname>
<Surname>Clark</Surname>
<Title>Mr</Title>
<UsualName>Craig Clark</UsualName>
<AlternateCode/>
<DayHours>7.50</DayHours>
<Details/>
<IsInactive>false</IsInactive>
<IsManager>false</IsManager>
<IsMale>true</IsMale>
<EmployeeType>SERTECH</EmployeeType>
<ActivityGroup>Labour Service</ActivityGroup>
<ProfitCentre>0303</ProfitCentre>
<Notes/>
<Position>Service Technician</Position>
<Salutation>Craig</Salutation>
<StandardText/>
<WeekChargeHours>35.00</WeekChargeHours>
<WeekHours>40.00</WeekHours>
<StartDate>2005-01-10</StartDate>
<Address>
<Address1>56 Garriet Road</Address1>
<Address2/>
<Address3/>
<Suburb>Princes Hill</Suburb>
<Postcode>3054</Postcode>
<Country>AUS</Country>
<PhoneBH>(00) 0000 0000</PhoneBH>
<PhoneAH>(00) 0000 0000</PhoneAH>
<Fax>(00) 0000 0000</Fax>
<Email>super@greentree.com</Email>
<Contact/>
<Mobile/>
</Address>
<ServiceGroups collection="true" count="1">
<Group>On-Site Service Group</Group>
</ServiceGroups>
<FavouriteJobs collection="true" count="2">
<Job>5003</Job>
<Job>5004.1</Job>
</FavouriteJobs>
<UserDefinedFields collection="true" count="0"/>
<Trees collection="true" count="1">
<Tree>
<Name>Region-AUS</Name>
<IsMandatory>false</IsMandatory>
<Value/>
<Path/>
</Tree>
</Trees>
</Employee>