Add Attachment Activity

Description

Add an attachment to the feature specified by the 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 Add Attachment activity to add it to 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

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 to which the attachment is added.

Attachment

Required

Type: File

The attachment to add.

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 added.

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.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.10