QueryByAttribute query = new QueryByAttribute
{
EntityName= "new_customentity",
ColumSet= new ColumnSet(new string{"new_customfield2","new_customfield3"})
};
query.Attributes.Add("new_customfield1");
query.Values.Add("value1");
EntityCollection records = crmService.ReteriveMultiple(query);
foreach(Entity record in records.Entities)
{
Console.WriteLine("custom field 2 " + record["new_customfield2"]);
Console.WriteLine("custom field 3 " + record["new_customfield3"]);
}
No comments:
Post a Comment