Easy Question
-
4. května 2012 13:47
Hi Guys,
I have a quick question. I am new to CRM 2011 and am currently converting code from CRM 4 to CRM 2011. Can you please help out on a few things:
- What is the difference between a attribute and property?
- In CRM 4 we used attributes extensively. How do we then convert the setting and getting of these properties? is thsi ok?
Property: Entity.Property["name"] = "billy";
Attribute: Entity["name"]="billy" | Entity.SetAttribute<string>("billy");
3. Any good documentation and resources for common convesion between 4 and 2011?
thank you guys.
Kelvin
Kind regards, Kelvin
Všechny reakce
-
4. května 2012 15:09
Hi Kelvin,
1. property and attribute are same called differently in different context.
2. here is example of get and set value
var name =Xrm.Page.getAttribute("contactid").getValue()[0].name;
Xrm.Page.getAttribute("assigned").setValue(lookupValue);3.
Have a look at this video and article
http://channel9.msdn.com/Series/DynamicsCRM2011/Upgrading-from-CRM-40-to-CRM-2011
http://technet.microsoft.com/en-us/library/gg554717.aspx
also refer to Richard
http://www.dynamicscrmtrickbag.com/2011/04/08/migrating-from-crm-4-0-to-dynamics-crm-2011/
hth
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
- Navržen jako odpověď Neil BensonMVP, Moderator 4. května 2012 23:11
- Označen jako odpověď Andrii ButenkoMVP, Moderator 8. května 2012 3:18
-
4. května 2012 20:59
Hi
Did this help?Please make sure to mark as answer to the response that helped you get through. This will help others with similar problem identify the answer and also close this thread as resolved.
Thanks
Dkay