2 Replies Latest reply on Mar 9, 2016 1:45 PM by tcoufal RSS
    tcoufal Communicator

    How to pass a Query into the URL

    Hi Guys,

    since alert processing subsystem is not working correctly (case has been opend and bug reported), We are trying to workaround that a bit.

    I have pretty standard REST call to my TW that looks like that:

     

    http://localhost/Thingworx/Resources/AlertFunctions/Services/QueryAlertSummary?method=post&Accept=text/xml

     

    Here goes my question.

    How can I append a query?

    For an example


    var query = {
    filters: {
    type: "And",
    filters: [
    {
    type: "GT",
    fieldName: "Duration",
    value: "0"
    }
    ]
    }
    };


    Is there any special formatting? How can simply put into the URL?

    Thanks a lot

    Tomas