EMDocumentsGetCreativeIDFromTemplateIDs Method

Alterian Email Manager 6.2.3 SDK Help File
Gets the CreativeID that exactly matches to the provided Html and Text Template Ids. If no Creative within the given Campaign exactly matches these IDs, CreativeID = 0 will be returned and TemplateMappingError will be populated with a friendly error message. If a Creative is found, TemplateMappingError will be an empty string.

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

Syntax
public static int GetCreativeIDFromTemplateIDs(
	DMToken token,
	int campaignID,
	int htmlTemplateID,
	int textTemplateID,
	out string templateMappingError,
	SqlConnection passedInConnection = null,
	SqlTransaction passedInTransaction = null
)

Parameters

token
Type: DMToken
Authentication token.
campaignID
Type: SystemInt32
ID of Campaign containing Creatives/Templates.
htmlTemplateID
Type: SystemInt32
ID of the Html Template (or 0).
textTemplateID
Type: SystemInt32
ID of the Text Template (or 0).
templateMappingError
Type: SystemString
Output parameter: Error text if Creative cannot be exactly matched.
passedInConnection (Optional)
Type: System.Data.SqlClientSqlConnection
Optional Existing Sql Connection to use.
passedInTransaction (Optional)
Type: System.Data.SqlClientSqlTransaction
Optional Existing Sql Transaction to use.

Return Value

Type: Int32
See Also