Associate MS CRM Records With Many-To-Many Relationship With C#

To associate Microsoft CRM Data Records with an many-to-many relationship you have to use the AssociateRequest, but keep in mind that some entities have special request – you’ll find them on the MSDN. For all standard entites you can use the example shown below.

The RelatedEntities property must be filled with a EntityReferenceCollection. That means that you can associate multiple records with one organization service call.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.