Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Marketing List is not appearing on Campaign Activity

(0) ShareShare
ReportReport
Posted on by 90

Hi,

I am trying to associate marketing list with campaign and campaign activity. Here is my code:

 var addItemCampaignRequest = new AddItemCampaignRequest
        {
            CampaignId = Campaigns.FirstOrDefault(), // id of campaign entity
            EntityId = MarketingList,
            EntityName = "list" ,   //logical name of marketinglist
        };

        AddItemCampaignResponse addItemCampaignResponse = (AddItemCampaignResponse)_serviceProxy.Execute(addItemCampaignRequest);

And it is adding marketing list to campaign. But when i open the campaign activity marketing list doesn't appear.

This is campaign:

5633.PNG

This Campaign Activity:

6180.PNG

Version: 365 8.2 Onpremise

Do you have an idea?

Best Regards

  • Suggested answer
    fuattatar Profile Picture
    fuattatar 90 on at
    RE: Marketing List is not appearing on Campaign Activity

    Solution:

    I was able to add marketing list to the campaign activity with AddItemCampaignActivityRequest.

    Sample:

    var addItemCampaignRequest = new AddItemCampaignRequest

           {

               CampaignId = Campaigns.FirstOrDefault(), // id of campaign entity

               EntityId = MarketingList,

               EntityName = "list",   //logical name of marketinglist

           };

           var addItemCampaignActivityRequest = new AddItemCampaignActivityRequest

           {

               CampaignActivityId = CampaignActivities.FirstOrDefault(), // id of campaign entity

               EntityName = "list",

               ItemId = MarketingList,

           };

           AddItemCampaignResponse addItemCampaignResponse = (AddItemCampaignResponse)_serviceProxy.Execute(addItemCampaignRequest);

           AddItemCampaignActivityResponse addItemCampaignActivityResponse = (AddItemCampaignActivityResponse)_serviceProxy.Execute(addItemCampaignActivityRequest);

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans