Add Features Activity

Description

The Add Features activity adds new features to an ArcGIS feature layer or new records to a table.

Usage

You may need to add features to an ArcGIS feature layer that you have created within your workflow. One scenario could be to create a feature, using the Create Feature activity, then use the Add Features activity to add the feature to an ArcGIS feature layer.

Inputs

Url

Optional

Type: String

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

The layer or table must support editing.

For example, http://server/arcgis/rest/services/<serviceName>/FeatureServer/<layerId>.

Layer

Optional

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

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

The layer or table must support editing.

Features

Required

Type: esri.Graphic (3.x, 4.x)* | esri.Graphic[] (3.x, 4.x)*

The features to add to the layer or records to add to the table.

When adding features to a layer, the geometries of the features must have the same spatial reference as the layer.

Geodatabase Version

Optional

Type: String

The geodatabase version on which the operation will be performed.

This argument only applies to layers and tables that support versioned data.

Requires ArcGIS Server v.10.1+.

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

results

Type: Object[]

The results that were returned.

success

Type: Boolean

Whether the add operation completed successfully.

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

Levels of Support:      Full Support      Partial Support      No Support

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.