web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics365 Online : Adding Marketing List to campaign activity using a plugin.

(0) ShareShare
ReportReport
Posted on by

I am trying to

1.Create a campaign activity(Relating to existing campaign)

2.Add marketing list to campaign activity(Marketing list is already being part of existing campaign)

3.Distribute marketing activity

I am able to create a campaign activity but when I try to add a marketing list to a campaign activity. there is no error. but Marketing list is not added to campaign activity. I have used below code. Pls suggest.

string MLlist= "list";
AddItemCampaignActivityRequest addStaticListToCampaignActivityRequest = new AddItemCampaignActivityRequest()
{
CampaignActivityId = _campaignActivityId,
ItemId = _marketingListId,
EntityName = MLlist,
};
service.Execute(addStaticListToCampaignActivityRequest);

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

     For Late bound approach, Use below code..

               Entity phonecall = new Entity("phonecall");

               phonecall["Subject"] = "Monthly advertisment call";

               DistributeCampaignActivityRequest distributeRequest =

                           new DistributeCampaignActivityRequest()

                           {

                               Activity = phonecall,

                               CampaignActivityId = _campaignActivityId,

                               Owner = new EntityReference("systemuser", _marketingManagerId),

                               OwnershipOptions = PropagationOwnershipOptions.Caller,

                               PostWorkflowEvent = true,

                               Propagate = true,

                               SendEmail = false,

                           };

               service.Execute(distributeRequest);

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans