Silverlight webresource problem in CRM RRS feed

  • Question

  • Hi,

    I am using the following code to get the matched record against the name field of account entity.

    ConditionExpression condition = new ConditionExpression();
                    condition.AttributeName = "name";
                    condition.Operator = ConditionOperator.Equal;
                    condition.Values.Add("Mike Bety");
                    FilterExpression filter = new FilterExpression();
                    QueryExpression query = new QueryExpression();
                    query.EntityName = "account";
                    query.ColumnSet = new ColumnSet();
    				OrganizationRequest request = new OrganizationRequest() { RequestName = "RetrieveMultiple" };
                    request["Query"] = query;
                    IOrganizationService service = SilverlightUtility.GetSoapService();
                    service.BeginExecute(request, new AsyncCallback(AccountList_ClickCallback), service);

    I got the following error:- Exception: Object reference not set to an instance of an object.

    But before that error it was showing all records instead of only against the filtered criteria.

    I want to seek your kind help in this regards.

    Wednesday, March 19, 2014 10:54 AM

All replies

  • Show the complete error and

    use try catch block also.

    Above error only show you have used and object/variable which yet not initialize.

    Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Wednesday, March 19, 2014 11:16 AM