EMDocumentsGetCampaignIDFromDMCreativeID Method

Alterian Email Manager 6.2.3 SDK Help File
Get the Campaign ID associated with a DM Creative ID. Method does not require the Campaign to be enabled, but will throw an exception if the Campaign does not exist at all.

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

Syntax
public static int GetCampaignIDFromDMCreativeID(
	DMToken token,
	int dmCreativeID,
	SqlConnection passedInConnection = null,
	SqlTransaction passedInTransaction = null
)

Parameters

token
Type: DMToken
Authentication Token
dmCreativeID
Type: SystemInt32
DM Creative ID
passedInConnection (Optional)
Type: System.Data.SqlClientSqlConnection
Optional Sql Connection
passedInTransaction (Optional)
Type: System.Data.SqlClientSqlTransaction
Optional Sql Transaction

Return Value

Type: Int32
An EM Campaign ID
See Also