[This is preliminary documentation and is subject to change.]

Inserts a campaign

Namespace:  OfficeClip.DBLayer.Template
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int InsertCampaign(
	int groupId,
	TemplateType templateType,
	bool isHtml,
	string name,
	string description,
	string subject,
	string html,
	string text,
	int createdByUserId,
	int emailAccountId,
	bool isRecurring,
	bool isMailMerge,
	int letterheadId,
	int campaignmetaId,
	ref int templateId
)
Visual Basic (Declaration)
Public Function InsertCampaign ( _
	groupId As Integer, _
	templateType As TemplateType, _
	isHtml As Boolean, _
	name As String, _
	description As String, _
	subject As String, _
	html As String, _
	text As String, _
	createdByUserId As Integer, _
	emailAccountId As Integer, _
	isRecurring As Boolean, _
	isMailMerge As Boolean, _
	letterheadId As Integer, _
	campaignmetaId As Integer, _
	ByRef templateId As Integer _
) As Integer
Visual C++
public:
int InsertCampaign(
	int groupId, 
	TemplateType templateType, 
	bool isHtml, 
	String^ name, 
	String^ description, 
	String^ subject, 
	String^ html, 
	String^ text, 
	int createdByUserId, 
	int emailAccountId, 
	bool isRecurring, 
	bool isMailMerge, 
	int letterheadId, 
	int campaignmetaId, 
	int% templateId
)

Parameters

groupId
Type: System..::.Int32
The unique id of the group
templateType
Type: OfficeClip.BusinessLayer.Template..::.TemplateType
The template type
isHtml
Type: System..::.Boolean
True if the template is an html template
name
Type: System..::.String
The name of the campaign
description
Type: System..::.String
The description of the campaign
subject
Type: System..::.String
The subject of the campaign
html
Type: System..::.String
The html of the campaign
text
Type: System..::.String
The text of the campaign
createdByUserId
Type: System..::.Int32
The unique id of the creator
emailAccountId
Type: System..::.Int32
The unique id of the email account
isRecurring
Type: System..::.Boolean
True if the template is a recurring template
isMailMerge
Type: System..::.Boolean
Shows if the template is the mail merge template
letterheadId
Type: System..::.Int32
The unique id of the letterhead associated with the template
campaignmetaId
Type: System..::.Int32
templateId
Type: System..::.Int32%
The template id

Return Value

The campaign id if successful

See Also