| CRM2011 | Visual Studio 2010 Asign Command |
| EntityReference | Entity["Field"] = new EntityReference(“Entity Related”, Data Type Guid(“Related Entity ID”)) |
| Client | Entity["Field"] = new EntityReference(“Entity Related(account/contact)”, Data Type Guid(“Related Entity ID”)) |
| OptionSet | Entity["Field"] = new OptionSetValue(Data Type Int) |
| Currency | Entity["Field"] = new Money(Data Type Decimal) |
| 2 options | Entity["Field"] = Data Type Bool |
| DateTime | Entity["Field"] = Data Type Datetime o Datetime.ToString(“format”) |
| Line of text | Entity["Field"] = Data Type String |
| Decimal Number | Entity["Field"] = Data Type Decimal |
| Integer Number | Entity["Field"] = Data Type Int |
| Double | Entity["Field"] = Data Type Double |
| Owner | Entity["Field"] = new EntityReference(“Related Entity(systemuser)”, Data Type Guid(“Related Entity ID”)) |
| Long Text | Entity["Field"] = Data Type String (long text) |
This comment has been removed by a blog administrator.
ReplyDelete