This project is read-only.

The Customer attribute type in version 1.0

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 Mar 13, 2012 at 11:17 AM by karolikl, version 2

Comments

No comments yet.