Jaa


OrganizationServiceContextExtensions.CopyCampaign Method (OrganizationServiceContext, Guid, Boolean)

 

Applies To: Dynamics CRM 2015

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

  • baseCampaign
    Type: System.Guid

    The ID of the base campaign to copy from. Required.

  • saveAsTemplate
    Type: System.Boolean

    A 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 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright