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


Applies To: Dynamics CRM 2015

Adds an item to a campaign activity. (Developer Extensions)

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


public static Guid AddItemCampaignActivity(
    this OrganizationServiceContext context,
    Guid campaignActivityId,
    Guid itemId,
    string entityName
static Guid AddItemCampaignActivity(
    OrganizationServiceContext^ context,
    Guid campaignActivityId,
    Guid itemId,
    String^ entityName
static member AddItemCampaignActivity : 
        context:OrganizationServiceContext *
        campaignActivityId:Guid *
        itemId:Guid *
        entityName:string -> Guid
Public Shared Function AddItemCampaignActivity (
    context As OrganizationServiceContext,
    campaignActivityId As Guid,
    itemId As Guid,
    entityName As String
) As Guid


  • campaignActivityId
    Type: System.Guid

    The ID of the campaign activity.

  • itemId
    Type: System.Guid

    The ID of the record to add to the campaign activity.

Return Value

Type: System.Guid

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


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