how to get guid id of account record from asp.net page RRS feed

  • Question

  • Hi,

    I want to retrieve account record with guid id. I got a record by using this code but i also want to save guid id of a record in variable. Kindly help me

    QueryExpression query = new QueryExpression("account");
                        EntityReference owner;

                        query.Criteria = new FilterExpression();
                        //query.Criteria = new FilterExpression(ConditionOperator.);
                        //query.Criteria.AddCondition("new_cityname", ConditionOperator.Equal, "abc");
                        query.Criteria.AddCondition("name", ConditionOperator.Equal, txtAccount.Text);

                        EntityCollection result1 = serviceProxy.RetrieveMultiple(query);

                        foreach (Entity entities in result1.Entities)

                            account = entities.Attributes["name"].ToString();


    Tuesday, April 22, 2014 12:48 PM


All replies