Поделиться через


OrganizationServiceContextExtensions.AddItemCampaign Method (OrganizationServiceContext, Guid, Guid, String)

 

Applies To: Dynamics CRM 2015

Adds an item to a campaign. The item added must be one of the following entity types: campaign, list, product, or salesliterature. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static Guid AddItemCampaign(
    this OrganizationServiceContext context,
    Guid campaignId,
    Guid entityId,
    string entityName
)
public:
[ExtensionAttribute]
static Guid AddItemCampaign(
    OrganizationServiceContext^ context,
    Guid campaignId,
    Guid entityId,
    String^ entityName
)
static member AddItemCampaign : 
        context:OrganizationServiceContext *
        campaignId:Guid *
        entityId:Guid *
        entityName:string -> Guid
<ExtensionAttribute>
Public Shared Function AddItemCampaign (
    context As OrganizationServiceContext,
    campaignId As Guid,
    entityId As Guid,
    entityName As String
) As Guid

Parameters

  • entityId
    Type: System.Guid

    The ID of the entity to add to the campaign.

Return Value

Type: System.Guid

Returns a Guid that contains the ID of the resulting campaign activity item.

Remarks

This is a method wrapper for the AddItemCampaignRequest and AddItemCampaignResponse 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