RE: multi selection working with C#
Hi,
You can use the "In" operator and pass the array. Sample below-
======================
using (service = new OrganizationServiceProxy(new Uri(_organizationURI), null, _credential, null))
{
var contactNames = new string[] { "Jim", "James" };
QueryExpression query = new QueryExpression("contact");
query.ColumnSet = new ColumnSet(true);
query.Criteria.AddCondition("firstname", ConditionOperator.In, contactNames);
var results = service.RetrieveMultiple(query);
foreach (var contact in results.Entities)
{
Console.WriteLine(contact["fullname"]);
}
}
======================
Hope this helps.