Dynamics CRM 2011 · Plugin

CRM 2011: Add/Remove Target Marketing List to Campaign Request/Message

On a recent project, we need to provide counts for the number of ‘targets’ for campaign. The theory in principle is simple, using plugin get all the target marketing list of a campaign and count the number of their members. For simplicity sake, only ‘static’ list is part of it. But of course the plugin must attach to an event.

First thought that comes to mind was Associate message. And it’s wrong!!!

Turns out, if you want to add another campaign, list, product or salesliterature to a campaign, you have to use AddItemCampaignRequest. And the corresponding message for plugin is, you guessed it AddItem.

For removing, RemoveItemCampaignRequest and the corresponding message for plugin is RemoveItem

Further read about the request classes:
AddItemCampaignRequest
RemoveItemCampaignRequest

Cheers,
Sy

Advertisements

2 thoughts on “CRM 2011: Add/Remove Target Marketing List to Campaign Request/Message

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s