3 Replies Latest reply on Jan 4, 2018 9:31 PM by pmishra-4 RSS
    pmishra-4 Explorer

    Not able to call rest API deployed on cloud

    Hi, i am not able to call rest API deplyoed on cloud, while it's working when rest API is runningon local machine.

      • Re: Not able to call rest API deployed on cloud
        Adam Macierzyński Apprentice

        Hello Prabhat,

        Can you describe more the problem? I assume that you have a service, in which you are making REST call to external system. This solution is working when you have your external system on your localhost, but not when it is deployed on the cloud?


        Can you show us the service also?




          • Re: Not able to call rest API deployed on cloud
            pmishra-4 Explorer

            Yes, you got it right. here is the code, i am trying. It's working file for commented URL:-



            var params1 = {

            proxyScheme: undefined /* STRING */,


              "Accept": "*/*",

              "tenantId": "12345"


            ignoreSSLErrors: undefined /* BOOLEAN */,

            useNTLM: undefined /* BOOLEAN */,

            workstation: undefined /* STRING */,

            useProxy: undefined /* BOOLEAN */,

            withCookies: undefined /* BOOLEAN */,

                url:"http://dev1.tcupiot.com/app/user5/TTSLService/Alert/Query?eventDateTime=2016-06-12%2C2018-10-15" /* STRING */,


                timeout: undefined /* NUMBER */,

            proxyPort: undefined /* INTEGER */,

            password: undefined /* STRING */, 

            username: undefined /* STRING */




            // result: JSON

            var data = Resources["ContentLoaderFunctions"].GetJSON(params1);



            var params2 = {

            infoTableName: "alertTable" /* STRING */,

            dataShapeName: "AlertDataShape" /* DATASHAPENAME */


            var jsonTable = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params2);

            for(var i=0;i<data.array.length;i++)
















            result = jsonTable;