EMDocumentsGetDMCreativeIDForCampaign Method (SqlConnection, SqlTransaction, Int32)

Alterian Email Manager 6.2.3 SDK Help File
Fetches the DM Creative Id for a given campaign if one can be found.

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

Syntax
public static int GetDMCreativeIDForCampaign(
	SqlConnection connection,
	SqlTransaction passedInTransaction,
	int campaignId
)

Parameters

connection
Type: System.Data.SqlClientSqlConnection
The open connection to use to pull the ID.
passedInTransaction
Type: System.Data.SqlClientSqlTransaction
The transaction being used with the connection being passed. This can be null if no transaction is being used
campaignId
Type: SystemInt32
Id of the Campaign to get the Creative ID for

Return Value

Type: Int32
The id of the DM Creative. If none is found, the method will throw an InvalidRequestException.
See Also