This website is completely free and made possible by displaying online advertisements.
Please consider supporting us by disabling your ad blocker.

Copy Marketing Lists in Microsoft CRM With C#

Microsoft CRM Jan 20, 2017

There is a pretty neat method to copy marketing lists in Microsoft CRM without retrieving every member and adding to the new list. All you have to do is creating a CopyMembersListRequest and set the two required properties SourceListId with the old list Id and the TargetListId with the new list id.  And of course, the new list must exist by the time the request is executed.

CopyMembersListRequest request = new CopyMembersListRequest
{
SourceListId = oldlist.Id,
TargetListId = newlist.Id
};

this.organizationservice.Execute(request);

Learn more about this on MSDN.

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.