Delete Attachments Activity

Description

Delete attachments associated with the specified object ID.

Usage

You could use the Query Attachment Infos and Display Form activities to allow the user to select an attachment and then delete it using the Delete Attachments activity.

Inputs

Url

Optional

Type: String

The URL of the ArcGIS feature layer. Either Url or Layer is required.

For example, http://server/arcgis/rest/services/<serviceName>/MapServer/<layerOrTableId> or http://server/arcgis/rest/services/<serviceName>/FeatureServer/<layerOrTableId>.

Layer

Optional

Type: esri.Layer (3.x, 4.x)*

The ArcGIS feature layer. Either Url or Layer is required.

Object Id

Required

Type: Number

The object ID of the feature from which the attachment is removed.

Attachment Ids

Required

Type: Number | Number[]

The attachment ID or array of attachment IDs to delete.

Timeout

Optional

Type: Number

The time span in milliseconds to wait for the request's results.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of host application. See Underlying Technologies for information.

Outputs

result

Type: any

The result objects, one for each attachment indicating if it was successfully removed.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Supported Environments

Environments capable of running this activity

Server

 

Client

Geocortex Web

Geocortex Mobile

Geocortex Viewer for HTML5

Web AppBuilder

Offline Support

In order for this activity to work when the device is offline, the activity must run in one of the following applications:

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, Web AppBuilder for ArcGIS 2.4.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.15