I want to get all the fields of Account entity of CRM in console application and i am using Organization service of CRM.
I have written below code to retrieve fields from entity.
Entity account = _serviceProxy.Retrieve("account", new Guid("88035df8-8e6b-e511-80bd-000d3aa0bb1b"), new ColumnSet(true));
int i = 0;
foreach (KeyValuePair<string, object> objAttribute in account.Attributes)
{
i++;
Console.Write(i + ". " + objAttribute.Key + " " + objAttribute.Value + " \n");
}
But it is retrieving only 65 fields of entity, but when i checked in the entity fields from Customization, it actually has 259 fields.
So how do i retrieve all the entity fields from CRM 2013 on premise.
Is there anything related to security?
Can anyone please help me on this?