List of type differences between CRM4 and 2011

24Oct11

I’m posting this list since it seems to be difficult for me to find quickly in the SDK documentation. It is an incredibly handy list of type mappings that are useful for converting CRM4 code to 2011 or for (in my case) writing abstraction libraries that need to convert between the two different CRM versions.

Without further ado, the list is here.

I’m including it inline here for quick reference:

AttributeTypeCode

Microsoft Dynamics CRM 2011 type

Microsoft Dynamics CRM 4.0 type

AttributeTypeCode.BigInt

long

N/A

AttributeTypeCode.Boolean

bool

CrmBoolean

AttributeType.CalendarRules

EntityCollection or CalendarRules[]

DynamicEntity[] or calendarrule[]

AttributeType.Customer

EntityReference

Customer

AttributeType.DateTime

System.DateTime

CrmDateTime

AttributeType.Decimal

decimal

CrmDecimal

AttributeType.Double

double

CrmFloat

AttributeType.EntityName

string

Attributes with ObjectTypeCode in DisplayMask

AttributeType.Integer

int

CrmNumber

AttributeType.Lookup

EntityReference

Lookup

AttributeType.ManagedProperty

BooleanManagedProperty

N/A

AttributeType.Memo

string

System.String

AttributeType.Money

 Money

CrmMoney

AttributeType.Owner

EntityReference

Owner

AttributeType.PartyList

 EntityCollection or ActivityParty[]

activityparty[] or DynamicEntity []

AttributeType.Picklist

OptionSetValue

Picklist

AttributeType. Uniqueidentifier (Formerly PrimaryKey)

System.Guid

Key

AttributeType.String

string

System.String

AttributeType.State

OptionSetValue or enumeration generated for the entity state

EntityNameStateInfo

AttributeType.Status

OptionSetValue

Status

AttributeType.Uniqueidentifier

System.Guid

UniqueIdentifier

AttributeType.Virtual

Not used in records.

Not used in records.



No Responses Yet to “List of type differences between CRM4 and 2011”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: