EMVariableCreateVariable Method

Alterian Email Manager 6.2.3 SDK Help File
Create a new Variable.

Namespace:  DMLibrary
Assembly:  DMLibrary (in DMLibrary.dll) Version: 1.0.6340.17420

Syntax
public static int CreateVariable(
	DMToken token,
	int campaignId,
	int rowOrder,
	string variableName,
	string parseName,
	DMVariableType variableType,
	DMVariableValue defaultValue,
	int lookupId,
	int lookupResult,
	int lookupCombo,
	bool forceMap,
	int defaultField,
	bool required,
	bool hidden,
	bool readOnly,
	bool shared,
	string description,
	string sampleValue,
	bool useDefaultForSample
)

Parameters

token
Type: DMToken
Authentication Token.
campaignId
Type: SystemInt32
Campaign Id of the containing Campaign.
rowOrder
Type: SystemInt32
Sets the row order for this variable.
variableName
Type: SystemString
Sets the name for this variable.
parseName
Type: SystemString
Sets the parse name for this variable.
variableType
Type: DMLibraryDMVariableType
Sets the type for this variable.
defaultValue
Type: DMLibraryDMVariableValue
Sets the default value for this variable.
lookupId
Type: SystemInt32
Sets the lookup id field for this variable.
lookupResult
Type: SystemInt32
Sets the lookup result field for this variable.
lookupCombo
Type: SystemInt32
Sets the lookup combo field for this variable.
forceMap
Type: SystemBoolean
Sets the force map flag for this variable.
defaultField
Type: SystemInt32
Sets the default field for this variable.
required
Type: SystemBoolean
Sets the required flag for this variable.
hidden
Type: SystemBoolean
Sets the hidden flag for this variable.
readOnly
Type: SystemBoolean
Sets the read only flag for this variable.
shared
Type: SystemBoolean
Sets the shared flag for this variable.
description
Type: SystemString
The description of the variable.
sampleValue
Type: SystemString
The sample value of the variable, used for preview/testing purposes.
useDefaultForSample
Type: SystemBoolean
Sets the usedefaultforsample flag for this variable.

Return Value

Type: Int32
The new variables Id.
See Also