Update Attachment Activity

Description

Update an existing attachment of a feature as specified by the attachment ID and the feature's object ID.

Usage

You could use a Display Form activity to allow the user to select a file on their computer via a File Picker form element and then use an Update Attachment activity to replace an existing attachment of a feature.

Offline Support

In order for this activity to work when the device is offline, the application must run in the Geocortex Mobile App Framework with an offline map that includes the feature layer.

Inputs

Url

Required

Type: String

The URL of the ArcGIS feature layer.

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

Object Id

Required

Type: Number

The object ID of the feature containing the attachment to be updated.

Attachment Id

Required

Type: Number

The ID of the attachment to be updated.

Attachment

Required

Type: File

The file that will replace the existing attachment.

Attachment Name

Optional

Type: String

Optional name for the attachment. When absent, the name of the file is used.

Geodatabase Version

Optional

Type: String

The geodatabase version on which the operation will be performed. This argument only applies to layers that support versioned data. Requires ArcGIS Server v.10.1+.

Return Edit Moment

Optional

Type: Boolean

Optional input specifying whether the response will report the time the attachment was updated. The default value is false. Requires ArcGIS Server v.10.5+.

Upload Id

Optional

Type: Number

The ID of the attachment that has already been uploaded to the server. This input only applies if the supportsAttachmentsByUploadId property of the layer is true. Requires ArcGIS Server v.10.4+.

Timeout

Optional

Type: Number

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

Outputs

result

Type: any

The result object indicating if the attachment was successfully updated.

Properties

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

Version Information

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

© 2018 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.9