Answered by:
How to retrive the field data type in mscrm 2011 through plugin

Question
-
Dear ALL;
i want to know the Entity for example(Account) meta data information like what fields it has and its type it relationship information ETC most important is the type of the field can anyone help??
- Edited by anwar_addi Monday, February 17, 2014 10:08 AM
Monday, February 17, 2014 9:59 AM
Answers
-
After executing RetrieveEntityResponse, you'll get an EntityMetadata object from which you can loop through all the attributes and read the AttributeType.Value.ToString() of each attribute.
Ref: http://microsoftcrmworld.blogspot.sg/2014/01/read-entity-attributes-in-ms-crm-2011.html
- Marked as answer by anwar_addi Monday, February 17, 2014 2:39 PM
Monday, February 17, 2014 2:31 PM
All replies
-
hi,
1. you can directly go the "Settings->Customizations->Customize System->Entities" you will find and all the related details.
2. you can follow below link for manged solution, which needs to imported in your organization, to get the all the related information of the entity, and relationship, field type editable or not, manged,..etc.
http://crm2011metabrowser.codeplex.com/
please read all the details related to your query
3. you can also refer below link.
http://blogs.msdn.com/b/crm/archive/2011/03/09/metadata-browser-for-microsoft-dynamics-crm-2011.aspx
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"
Thanks & regards !
Subhash
- Edited by Subhash Mahato Monday, February 17, 2014 10:16 AM
Monday, February 17, 2014 10:14 AM -
Hi Subhash;
i want to get information in the plugin not from any other solutions
Monday, February 17, 2014 10:20 AM -
Here is an example of a plugin : Example
Thru the context parameter you can access all the information you want.
From this code :
Entity entity = (Entity)context.InputParameters["Target"];
You can treat your Entity as a standard Object and access to all information.
- Proposed as answer by tiagolvsantos Monday, February 17, 2014 11:37 AM
Monday, February 17, 2014 11:37 AM -
-
i just want to to know the fields type for example if an acccount form has an look up field so if i get the all the field of accoutn from metadata i want to know the field data typeMonday, February 17, 2014 1:30 PM
-
After executing RetrieveEntityResponse, you'll get an EntityMetadata object from which you can loop through all the attributes and read the AttributeType.Value.ToString() of each attribute.
Ref: http://microsoftcrmworld.blogspot.sg/2014/01/read-entity-attributes-in-ms-crm-2011.html
- Marked as answer by anwar_addi Monday, February 17, 2014 2:39 PM
Monday, February 17, 2014 2:31 PM