3

enter image description here How to pass Parameter NetSuite RESTLet using Advanced REST client. I Cant get parameter value.

function getRecord(datain)
{
    nlapiLogExecution('DEBUG','recordtype='+datain.recordtype);
    nlapiLogExecution('DEBUG','id='+datain.id);
    var sugu = nlapiLoadRecord(datain.recordtype, datain.id);

    return JSON.stringify(sugu);
}
quarks
  • 33,478
  • 73
  • 290
  • 513
Wenson
  • 235
  • 4
  • 17

2 Answers2

2

If you are actually trying to send a GET request then it goes in the URL, as in the attached image. If you are trying to send a POST or PUT, then you add it into the payload, though (that will show up once you select POST or PUT).

enter image description here

w3bguy
  • 2,215
  • 1
  • 19
  • 34
0

enter image description here

You Need to pass the parameter in header not in variable .please refer that image

Abimanyu
  • 24
  • 3