EMDocumentsGetTemplateContentForUseInDifferentCampaign Method

Alterian Email Manager 6.2.3 SDK Help File
Returns the DM Template content for a given EM Creative, but it resolves any template reference within the given DM Template according to the campaign declared by the DestinationEMCampaignId parameter. This is used when transferring the creative content from one Campaign to another Campaign. If the destination Campaign does not have a Creative containing a DM Template with the relevant name, an error will occur. This avoids that happening.

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

Syntax
public static string GetTemplateContentForUseInDifferentCampaign(
	DMToken token,
	int CreativeId,
	int destinationEMCampaignId,
	EMContentType contentType
)

Parameters

token
Type: DMToken
Authentication Token.
CreativeId
Type: SystemInt32
The ID of the EM creative document.
destinationEMCampaignId
Type: SystemInt32
The destination EM Campaign to which this creative content is being transferred.
contentType
Type: DMLibraryEMContentType
The content type of the Creative to return.

Return Value

Type: String
Template Content.
See Also