Hello, I am trying to call a RESTlet from a User E...
# suitescript
g
Hello, I am trying to call a RESTlet from a User Event script, using https.requestRestlet and method GET but it seems that the RESTlet is not receiving the parameters. I am calling the Restlet as follows:
Copy code
function callRestlet(body, script, deploy){    
    var myRestletResponse = https.requestRestlet({
      body: 'My Restlet body',
      deploymentId: deploy,
      headers: myRestletHeaders,
      scriptId: script
    });

    var myRestletHeaders = {
      myHeaderType: 'Test',
      myHeaderStuff: 'This is my header',
      myHeaderId: 7
    };
  var myUrlParameters = {
      myFirstParameter: 'firstparam',
      mySecondParameter: 'secondparam'
    }
  var myRestletResponse = https.requestRestlet({
      body: 'My Restlet body',
      deploymentId: deploy,
      headers: myRestletHeaders,
      method: 'GET',
      scriptId: script,
      urlparams: myUrlParameters
  });
This is the doGet function: An this how the logs looks like: