locked
SCOM 2019 HTML5 Dashboard - use of REST API getting group RRS feed

All replies

  • Here is the html text of my widget :

    <!DOCTYPE HTML>
    <html>
    
    <head>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    
        <script type="text/javascript">
            window.onload = function () {
                $.ajax({
                    url: "/OperationsManager/data/scomGroups",
                    type: "POST",
                    headers: {
                        "Content-Type": "application/json"
                    },
                      data:  {
                            "criteria":"DisplayName = '_ITER_RDS_CATIADesigners_Computers'"
    		},
                    success: function (result) {            
                       alert(result);
                    },
                    error: function (jxhdr, exception) {               
                       alert(jxhdr.status);
    		   alert(jxhdr.responseText);
    		   alert(exception);
                    }
                });
            }
     
            
        </script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/canvasjs/1.7.0/canvasjs.min.js"></script>
    
    </head>
    
    <body>
    
    </body>
    
    </html>
    at execution, error function is called and  jxhdr.responseText is equal to : 

    {errorMessage: "Passed parameter cannot be null",
    errorTrace: ""}

    Can anybody help me on this topic ? Thank you by advance



    Thursday, June 18, 2020 4:13 PM