I hit the server and I received (hopefully) the correct dataset. Then I tried to list all the companies using the following code.
EntityCollection result = proxy.RetrieveMultiple(expression);
foreach (var entity in result.Entities)
{
String output = String.Empty;
if (entity.Attributes.Contains("account"))
output = entity.Attributes["account"].ToString();
}
However, it would be nice to start an inner loop that goes through all the available attributes in result.Entities. Should I use entity.Attributes.Keysor is there a better method?
source
share