2017-05-30 93 views
2

enter image description here如何使用高級REST客戶端傳遞參數NetSuite RESTLet。我不能獲取參數值。如何使用高級REST客戶端傳遞參數NetSuite RESTLet

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

    return JSON.stringify(sugu); 
} 

回答

2

如果您確實試圖發送GET請求,那麼它會進入URL中,如附圖所示。如果您嘗試發送POST或PUT,則將其添加到有效負載中,不過(一旦選擇POST或PUT,它就會顯示出來)。

enter image description here

相關問題