locked
CRM 2013 RRS feed

  • Question

  • Hi

    I am trying get  the count value of list

     function Check()
    {
    );
     var enityName ="question";
     var attributeCode ="npsquestion";
      var fieldName = "npsquestion";
        var fetchxmlvalue = '<fetch mapping="logical" distinct="true" aggregate="true"><entity name="' + enityName + '"><attribute name="' + attributeCode + '" aggregate="countcolumn" alias="countyAccounts"/><filter type="and"><condition attribute="' + fieldName + '" operator="eq" uitype="' + enityName + '" value="1"/></filter></entity></fetch>';
        var fetchQuery = fetchxmlvalue;
    var attributevalue = Retrive.Core.SoapLib.executeFetchXmlRequest(fetchxmlvalue);
      alert(attributevalue[0].countyAccounts[1]);

    i tried this ..but it's not working can you any check out pls


    Rammohan

    Monday, January 27, 2014 12:20 PM