locked
Create HTML table from the result for Fetch XML RRS feed

  • Question

  • Hi All,

    Could any one share me the code for Creating HTML Table from the Result of FetchXML dynamically

    <html>
    <head>
        <title>Account Services</title>

        <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>
        <script src="../Jquery.min.js" type="text/javascript"></script>
        <script src="../bootstrap.min.js" type="text/javascript"></script>
        <script src="../grid.locale_en.js" type="text/javascript"></script>
        <script src="../jquery.jqgrid.min.js" type="text/javascript"></script>
        <script src="..//scripts/XrmServiceToolkit" type="text/javascript"></script>
        <script language="javascript" type="text/javascript">
            //get Account Services
            function getAccountServices() {
                var SecurityLogFetchXML = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>" +
      "<entity name='new_securitylog'>" +
        "<attribute name='new_11' />" +
        "<attribute name='new_22' />" +
        "<attribute name='new_33' />" +
        "<attribute name='new_44' />" +
        "<attribute name='new_55' />" +
        "<order attribute='new_11' descending='false' />" +
        "<filter type='and'>" +
          "<filter type='and'>" +
            "<condition attribute='new_case' operator='eq' value='{71AA02DE-EB7B-E611-80DE-C4346BAC1B18}' />" +
            "<condition attribute='new_contact' operator='eq' value='{51F59355-667E-E611-80DE-C4346BAC0934}' />" +
          "</filter>" +
        "</filter>" +
      "</entity>" +
    "</fetch>";
                var contactRecords = XrmServiceToolkit.Soap.Fetch(SecurityLogFetchXML);
                if (contactRecords.length > 0) {
                    for (var i = 0; i < contactRecords.length; i++) {
                    }
                }
            }

        </script>
        <meta>
        <meta>
        <meta>
    </head>
    <body onload="getAccountServices();" style="overflow-wrap: break-word;">

    </body>
    </html>

    Tuesday, October 4, 2016 8:29 PM