The loca path of the file to upload to the Cityworks instance
Optional
filename: stringThe filename for the attachment
Optional
attachment_type: string = 'attachment'The filename for the attachment, values: attachment, signature, url
Optional
task_id: numberID of WorkOrder task, if current activity is a work order and the attachment should be on the task
Optional
comments: stringThe filename for the attachment
Optional
label: stringThe label to apply to the (PLL only)
Returns object that represents a boolean for action resolution
Download an attachment
ID of an attachment to download
Returns object that represents a file stream
Get attachments related to Inspection, WorkOrder, or Request
An array of IDs or a single ID (inspectionIds, WorkOrderSids, WorkOrderIds, or RequestIds) for which to get attachments. Only one node (Inspection, WorkOrder, Request, or Case) type at a time. Don't mix-and-match WorkOrderIds with WorkOrderSids.
Returns Promise that represents a collection of attachments from the matched inspections, service requests, or work orders
Get attachment by ID (not implemented)
An attachment ID to get info for
Returns object that represents an object that describes the matched inspection attachment
Get attachment by node (Inspection, WorkOrder, Request, or Case) IDs
An array of IDs or a single ID (inspectionIds, WorkOrderSids, WorkOrderIds, RequestIds, or CaseIds) to get attachments for. Only one node (Inspection, WorkOrder, Request, or Case) type at a time. Don't mix-and-match WorkOrderIds with WorkOrderSids.
Returns Promise that represents a collection of attachments from the matched inspections
Get Doc labels for a case template
The ID of the Business Case to get Document Labels for
Returns Promise that represents a collection of tags that can be added to attachments
Get Related Documents from Case
An array of CaseIDs or a single CaseID for which to get related documents.
Returns Promise that represents a collection of related documents from the matched cases
Get Tags available with which to tag attachments
Returns Promise that represents a collection of tags that can be added to attachments
Set Tags on an attachment
Returns Promise that represents a collection of tags that can be added to attachments
Set Tags on an many attachments
An array of attachment IDs to add tags to.
An array of tag objects to add to the attachments
Returns Promise that represents a collection of documents which have had their tags set
Update attachment
Optional
title: stringThe filename for the attachment
Optional
description: stringThe filename for the attachment
Optional
label: stringThe label to apply to the (PLL only)
Returns object that represents a boolean for action resolution
Static
downloadGet attachment URLs in array
Returns array of attachment URLs
Add attachments (doesn't handle URL or Signature type attachments properly, currently)