OrganizationServiceContextExtensions.CopyCampaign Method (OrganizationServiceContext, Guid, Boolean)
Applies To: Dynamics CRM 2013
Copies a campaign. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static Guid CopyCampaign(
this OrganizationServiceContext context,
Guid baseCampaign,
bool saveAsTemplate
)
public:
[ExtensionAttribute]
static Guid CopyCampaign(
OrganizationServiceContext^ context,
Guid baseCampaign,
bool saveAsTemplate
)
static member CopyCampaign :
context:OrganizationServiceContext *
baseCampaign:Guid *
saveAsTemplate:bool -> Guid
<ExtensionAttribute>
Public Shared Function CopyCampaign (
context As OrganizationServiceContext,
baseCampaign As Guid,
saveAsTemplate As Boolean
) As Guid
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
baseCampaign
Type: System.GuidThe ID of the base campaign to copy from. Required.
saveAsTemplate
Type: System.BooleanA value that indicates whether to save the campaign as a template. Required.
Return Value
Type: System.Guid
Returns a Guid, the ID of the newly created campaign.
Remarks
This is a method wrapper for the CopyCampaignRequest and CopyCampaignResponse classes. See the documentation in the Request class for more information about this message.
See Also
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2013
Return to top