Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to use AddItemCampaignRequest using web api in MS CRM 2016

Posted on by Microsoft Employee

Hello There,

We are trying to associate Marketing List to a Campain using web API in MS CRM 2016 and while normal association it doesn't allows, can someone guide us how to use AddItemCampaignRequest using web API in ms CRM.

We tried below request but it shows error-"Request message has unresolved parameters."

Request:-

api/data/v8.1/campaigns(8168F9A2-7027-E811-80FA-6C626DCF4746)/Microsoft.Crm.AddItemCampaignRequest

Parameters:

{

"CampaignId": "8168F9A2-7027-E811-80FA-6C626DCF4746",
"EntityId" :"2B46C447-2A75-E811-A2C8-F8BC12A3DCEC",
"EntityName": "list"
}

Thank you!

Bhausaheb Patil

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to use AddItemCampaignRequest using web api in MS CRM 2016

    Hello Andrew,

    Can you also suggest how can I use "RemoveItemCampaignActivity" action using web api to remove the association of list with CampaignActivity?

    Similarly, I wanted a sample for "DistributeCampaignActivity".

    Regards,

    Hrishikesh Joshi.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How to use AddItemCampaignRequest using web api in MS CRM 2016

    Hello,

    I'm not sure what the question is. I just checked /api/data/v8.1/$metadata , found AddItemCampaign action there and experimented. You can find here what I tried - butenko.pro/webapi-examples-index

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to use AddItemCampaignRequest using web api in MS CRM 2016

    Thank you so much, it worked.

    Can you please advise where we can find the help this type of transaction for web API?

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How to use AddItemCampaignRequest using web api in MS CRM 2016

    Hello,

    Check my post how to use AddItemCampaign action in WebApi - butenko.pro/.../how-to-add-item-to-campaign-using-webapi

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans