Description
This method sets the task status to done. The task should be matched with the given plant IdplantId.
Note
Only the task instance for the current year is set to done by this method.
...
Parameter | Type | Mandatory/OptionalComments | Maximum character length/limit | Description |
---|---|---|---|---|
plantId | long | MandatoryPlant id | Not relevant | plantId of the task |
taskId | long | Mandatory | Not relevant | Task Id of the created task |
applicationName | String | Mandatory | Unique identifier (of your choice) to identify the client application which consumes the Boligmappa API. (length Should be less than or equal to 10 characters) |
The name of the integration partner. |
Request - sample input
<SetTaskToDone>
<MethodParameters>
<UserAuthentication>
<UserName>username</UserName>
<Password>password</Password>
<AnyAttr attr0="XmlAttributeArray" isNull="false">
<XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
</AnyAttr>
</UserAuthentication>
<plantId>7408</plantId>
<taskId>1014</taskId>
<applicationName>test</applicationName>
</MethodParameters>
</SetTaskToDone>
Response
Type | Description |
---|---|
MaintenanceTaskMaintenance Task | An Object Of the Maintenance Taskobject of the MaintenanceTask |
Response - sample output
<SetTaskToDone>
<MethodParameters>
<MaintenanceTask>
<Id>1014</Id>
<Description>test</Description>
<Month>3</Month>
<Year>2018</Year>
<IsRepeated>False</IsRepeated>
<IsDone>True</IsDone>
</MaintenanceTask>
</MethodParameters>
</SetTaskToDone>
Exceptions
Error Code | Description |
---|---|
111 | PlantId plantId does not exist for your company |
123 | An exception occurred while processing your request |
132 | PlantId plantId does not existsexist |
138 | ApplicationName applicationName length is has exceeded the maximum allowed character limit allowed (10) |
145 | The plant id is plantId is invalid |
146 | The application name applicationName is not set |
167 | You are not authorized to use this web method |
198 | Task is not available in the plant |
199 | Task Id TaskId is not valid |
279 | The task is already in done status |
...