Empower Help

Search:

Display Legacy Contents

IndexBookmarkPrint

Home > Factory Productivity and Scheduling > Advanced Topics > Import Export Data > Empower API > Using The API To Retrieve Data > Employee Task Times

Employee Task Times


Employee Task Times can be retrieved through the API using the function calls



1. GetTaskTimesForEmployee(EmployeeLoginId As String, StartDate As String, EndDate As String)


As a result the request body should be based on the following:

<soapenv:Body>
      <web:GetTaskTimesForEmployee>
         <web:EmployeeLoginId>LOGIN ID</web:EmployeeLoginId>
         <web:StartDate>START DATE TIME(Format: YYYY-MM-DD hh:mm:ss)</web:StartDate>
         <web:EndDate>END DATE TIME (Format: YYYY-MM-DD hh:mm:ss)</web:EndDate>
      </web:GetTaskTimesForEmployee>
   </soapenv:Body>


 2. GetTaskTimes(StartDate As String, EndDate As String)

 
As a result the request body should be based on the following:

 <soapenv:Body>
      <web:GetTaskTimes>
          <web:StartDate>START DATE TIME(Format: YYYY-MM-DD hh:mm:ss)</web:StartDate>
         <web:EndDate>END DATE TIME (Format: YYYY-MM-DD hh:mm:ss)</web:EndDate>
      </web:GetTaskTimes>
</soapenv:Body>



3. GetTaskTimesForJob(jobOurReference As String)

 
As a result the request body should be based on the following:

 <soapenv:Body>
      <web:GetTaskTimesForJob>
         <web:jobOurReference>JOB OUR REFERENCE</web:jobOurReference>
      </web:GetTaskTimesForJob>
</soapenv:Body>


4. GetTaskTimesForJobForEmployee(jobOurReference As String, employeeLoginId As String)

 
As a result the request body should be based on the following:

<soapenv:Body>
      <web:GetTaskTimesForJobForEmployee>
         <web:jobOurReference>?</web:jobOurReference>
         <web:employeeLoginId>?</web:employeeLoginId>
      </web:GetTaskTimesForJobForEmployee>
</soapenv:Body>



5. GetTaskTimesForJobsWithStatus(jobOurReference As List(of String), status As String)

 
As a result the request body should be based on the following:

         
 <soapenv:Body>
      <web:GetTaskTimesForJobsWithStatus>
         <web:jobOurReference>
            <!--One or more repetitions:-->
            <web:string>JOB OUR REFERENCE</web:string>
         </web:jobOurReference>
         <web:status>TASK STATUS</web:status>
      </web:GetTaskTimesForJobsWithStatus>
   </soapenv:Body>



6. GetProductivityTaskTimes(StartDate As String, EndDate As String)


 
As a result the request body should be based on the following:


<soapenv:Body>
      <web: GetProductivityTaskTimes>
          <web:StartDate>START DATE TIME(Format: YYYY-MM-DD hh:mm:ss)</web:StartDate>
         <web:EndDate>END DATE TIME (Format: YYYY-MM-DD hh:mm:ss)</web:EndDate>
      </web: GetProductivityTaskTimes>
</soapenv:Body>

 
Each of the above function calls returns the same data set as follows:



 <GetTaskTimesResponse xmlns="http://empowersoftware.co.nz/WebService">
         <GetTaskTimesResult>
         <!--Zero or more repetitions:-->
            <EmployeeTaskTime>
               <TaskTimeEmployee>
                    <EmployeeLoginId>LOGIN ID</EmployeeLoginId>
                    <EmployeeFirstName>FIRST NAME</EmployeeFirstName>
                    <EmployeeSurname>LAST NAME</EmployeeSurname>
                    <EmployeePosition>POSITION</EmployeePosition>
   <EmployeeSubFactory>SUBFACTORY</EmployeeSubFactory>
                    <EmployeeWorkcenter>WORK CENTER NAME</EmployeeWorkcenter>
                    <EmployeeId>EMPLOYEE ID</EmployeeId>
               </TaskTimeEmployee>
               <EmployeeTaskTimeStart>Employee Task Time Start</EmployeeTaskTimeStart>
               <EmployeeTaskTimeEnd>Employee Task Time End</EmployeeTaskTimeEnd>
               <EmployeeTaskTimeActual>Employee Task Time Actual</EmployeeTaskTimeActual>
               <EmployeeTaskStatus>Employee Task Status</EmployeeTaskStatus>
               <TaskId>Task Id</TaskId>
               <TaskStartDate>Task Start Date</TaskStartDate>
               <TaskEndDate>Task End Date</TaskEndDate>
               <TaskBudget>Task Budget Hours</TaskBudget>
               <ProductName>Product Name</ProductName>
               <ProcessName>Process Name</ProcessName>
               <JobOurRef>Job Our Reference</JobOurRef>
               <TaskPriority>Task Priority</TaskPriority>
               <TaskScheduledDate>Task scheduled Date</TaskScheduledDate>
               <Reason>Reason</Reason>
               <EmployeeTaskTimeId>Employee Task Time Id</EmployeeTaskTimeId>
             </EmployeeTaskTime>
  </GetTaskTimesResult>
      </GetTaskTimesResponse>


For more information see
Example Code
WDSL Schema

 


 


See also