Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I have seen many question in MS CRM Development where developers asking for MS CRM 2011 data type related question, like how to set lookup field, how to set/retrieve optionset value. so I thought to write code to show how we can set different data type field in MS CRM 2011.
Below is the example to create account using late bound
Entity _Account = new Entity();
_Account.LogicalName = “account”;
//setting text field
//setting optionset field
_Account.Attributes.Add(“accountcategorycode”, new OptionSetValue(2));
//setting datetime field
_Account.Attributes.Add(“new_collectiondate”, new DateTime(2012, 3, 25));
//setting currency field
_Account.Attributes.Add(“creditlimit”, new Money(300));
_Account.Attributes.Add(“parentaccountid”, new EntityReference(“account”, new Guid(“XXX-XXX……..”)));
_Account.Attributes.Add(“new_executivecommission”, new Decimal(55.5));
we should get new account created like below
In next post I will show how to retrieve different data types fields using server side code.
Business Applications communities