how to get the name of a solution component in MS dynamics CRM RRS feed

  • Question

  • Hi,

      I trying to retrieve the list of default solution solution components. I don't find an attribute to get the names of solution components of default solution...

    Following is the code I am using to retrieve solution components of default solution. This code is retrieving the solution component name but not the solution component logical name

     Entity solutionComponentEntity = new Entity("solutioncomponent");
      solutionComponentEntity["solutionid"] = "{fd140aaf-4df4-11dd-bd17-0019b9312238}" //default solution id
    QueryExpression querySolutionComponent = new QueryExpression
                    EntityName = "solutioncomponent",
                    ColumnSet = new ColumnSet("componenttype", "solutioncomponentid"),//specify whatever columns you want to retrieve
                    Criteria = new FilterExpression()
                querySolutionComponent.Criteria.AddCondition("solutionid", ConditionOperator.Equal, solutionComponentEntity["solutionid"]);
                EntityCollection querySolutionComponentResults = osp.RetrieveMultiple(querySolutionComponent);
                if (querySolutionComponentResults.Entities.Count > 0)
                    obj.rtb.AppendText("\t\n****Existing Solutions Components****\n");
                    for (int i = 0; i < querySolutionComponentResults.Entities.Count; i++)
                        if (true)//Here you need to do the filtering. I mean enities, webresources etc.
                            obj.rtb.AppendText("\n"+ querySolutionComponentResults.Entities[i]["componenttype"]);


    Monday, October 28, 2013 9:58 AM