Home > Factory Productivity and Scheduling > Advanced Topics > Import Export Data > Empower API > Using The API To Retrieve Data > Tasks
Tasks
Task details can be retrieved through the API using the function call
GetTasksForJob(jobOurReference As String)
The function takes a single argument of data type String and returns the Task Data if it exists.
The following data types are used
TaskData
Public TaskId As String
Public TaskStartDate As String
Public TaskEndDate As String
Public TaskBudget As String
Public ProductName As String
Public ProcessName As String
Public JobOurRef As String
Public TaskPriority As String
Public TaskComments As String
Public TaskInstructions As String
Public TaskStatus As String
Public TaskActual As String
Public TaskScheduledDate As String
Public TaskField1 As String
Public TaskField2 As String
Public AssignedEmployees As List(Of EmployeeData)
As a result the request body should be based on the following
<soapenv:Body>
<web:GetTasksForJob>
<web:jobOurReference>JOB OUR REFERENCE</web:jobOurReference>
</web:GetTasksForJob>
</soapenv:Body>
Response XML Format,
<soap:Body>
<GetTasksForJobResponse xmlns="http://empowersoftware.co.nz/WebService">
<GetTasksForJobResult>
<!--Zero or more repetitions:-->
<TaskData>
<TaskId>TASK ID</TaskId>
<TaskStartDate>TASK START DATE</TaskStartDate>
<TaskEndDate>TASK END DATE</TaskEndDate>
<TaskBudget>TASK BUDGET</TaskBudget>
<ProductName>PRODUCT NAME</ProductName>
<ProcessName>PROCESS NAME</ProcessName>
<JobOurRef>JOB NO</JobOurRef>
<TaskPriority>TASK PRIORITY</TaskPriority>
<TaskStatus>TASK STATUS</TaskStatus>
<TaskActual>TASK ACTUAL HOURS</TaskActual>
<TaskScheduledDate>TASK SCHEDULED DATE</TaskScheduledDate>
<TaskField1>TASK FIELD 1</TaskField1>
<TaskField2>TASK FIELD 2</TaskField2>
<AssignedEmployees>
<!--Zero or more repetitions:-->
<EmployeeData>
<EmployeeLoginId>EMPLOYEE LOGIN</EmployeeLoginId>
<EmployeeFirstName>EMPLOYEE FIRST NAME</EmployeeFirstName>
<EmployeeSurname>EMPLOYEE LAST NAME</EmployeeSurname>
<EmployeePosition>EMPLOYEE POSITION</EmployeePosition>
<EmployeeSubFactory>EMPLOYEE SUB FACTORY</EmployeeSubFactory>
<EmployeeWorkcenter>EMPLOYEE WORK CENTER</EmployeeWorkcenter>
</EmployeeData>
</AssignedEmployees>
</TaskData>
</GetTasksForJobResult>
</GetTasksForJobResponse>
</soap:Body>
See also
|