This project is read-only.

The Customer attribute type

There are quite a lot of Microsoft Dynamics CRM attribute types, and all of the types are supported by this framework. There is, however, something you need to think about when retrieving attributes of type Customer.

A Customer can be either a Contact or an Account. This means that you need to specify whether the Customer is a Contact or an Account. You do this in the CRM entity class. In the following example the parentcustomerid attribute is of type Customer. So we need to set ReferenceEntity to the CRM name of the entity we expect, in this case an Account.

[CrmEntity("contact")]
public class CrmContact
{
        // ....

        [CrmAttribute("parentcustomerid", ReferenceEntity = "account")]
        public Guid ParentCustomerId
        {
            get;
            set;
        }
}

 

Last edited Oct 20, 2010 at 6:12 PM by karolikl, version 1

Comments

No comments yet.