简体   繁体   中英

How to programmatically create a Quick Campaign in MS Dynamics CRM

I am trying to create a "quick campaign" in code, but I don't find a class to do that.

I found the way to create a list and add users to that list. But I can't continue, because I don't know the way.

this is an old post but I thought I'd reply anyway.

The 'quick campaign' entity in CRM is called 'bulkoperation'. The Quick Campaign Wizard only creates activity records of other types, such as phone calls or tasks. The bulk operation is that which actually performs the action of distributing the campaign. A quick campaign is not a standard CRM entity.

As far as I know, you can't create a bulkoperation record using code - there is no 'Create' method for this class. I assume this is because the bulk operations are tied to the CRM platform too tightly.

The closest way to simulate creating a quick campaign, I would suggest, is to perform the actions of the Quick Campaign Wizard using code and create the associated activities that the Wizard would normally create. That, or use the Campaign entity, which can be managed with code.

Search the CRM SDK for the bulkoperation class for more information.

To create a Quick Campaign you can use the PropagateByExpressionRequest. Microsofot has provide sample code on how to do this -> https://msdn.microsoft.com/en-us/library/gg328526.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM