This method allows, in a simplified way, to obtain the list of attachments of the assets referring to a work order.
The method to be used when getting the list is:
GET url/api/mytenant/myorganization/maintenance/workorders/getWorkordersAttachementsAssets
When this method is executed successfully, it returns HttpStatusCode.200OK.
[
{
"name": "AUD-SUB_0000007368_20221121_092616245.pdf",
"size": 381428.000000,
"sizeDecimalPlaces": null,
"mediaType": "application/pdf",
"workOrderId": "b4fa6c64-9670-ed11-a81b-000d3ac29e92",
"path": "801769/801769-0001/maintenance/workOrders/b4fa6c64-9670-ed11-a81b-000d3ac29e92/attachment?fileName=0000007368_20221121_092616245.pdf&index=0"
}
]
This method allows you to list asset attachments according to the filled parameters:
i.assignedTo: Person to whom the work order is assigned.
ii.company: The company's key.
modifiedOn: Gets the attachments after the inserted date.