Add Attachment Activity

Description:

Adds an attachment to a feature of an ArcGIS Server feature layer.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.CodeActivity
      Geocortex.Workflow.Activities.AddAttachment

Function:

This activity allows you to upload a file as an attachment to a feature in a feature layer.

In a Workflow:

You would use this activity to add new files as attachments to a feature in a feature layer.

Properties:

Name Description

In Arguments

Content

The byte content of the file to attach. If both Content and File Uri are provided Content will be used.

Content Type

The MIME type of the file. If no value is provided the content type will be derived from the extension of the file name.

Credentials

The network credentials that are sent to the host and used to authenticate the request.

Feature Id

The ID of the feature to add the attachment to.

Feature Layer Url

The URL of the ArcGIS Server feature layer. The layer must support attachments. For example: http://server/arcgis/rest/services/<serviceName>/FeatureServer/<layerId>.

File Name

The name of the attachment. If no value is provided the name of the file from the File Uri will be used.

File Uri

The absolute URI to the file to attach. For example: C:\Temp\MyFile.txt or http://server/MyFile.txt. If both Content and File Uri are provided Content will be used.

GDB Version

The geodatabase version on which the operation will be performed. This argument only applies to layers that support versioned data.

Proxy Url

The URL to proxy the request through.

Token

The token for accessing a secure ArcGIS task.

Misc

Display Name

AddAttachment

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Out Arguments

Result

The attachment operation result.

Version Information:

Supported from: Geocortex Essentials 3.7.