使用nlapiRequestUrl()从套件脚本调用端点

时间:2018-11-29 10:06:50

标签: python netsuite suitescript

我正在尝试使用基本身份验证从SuiteScript调用python端点。

为此,我通过:

var objectVariable = {"customer_code":customer_code,"customer_name":customer_name,
"evexso_code":evexso_code,"delivery_address_1":delivery_address_1,
"delivery_address_2":delivery_address_2,"delivery_suburb":delivery_suburb,
"delivery_postcode":delivery_postcode,"delivery_state":delivery_state,
"delivery_country":delivery_country,"monday_run":monday_run,
"tuesday_run":tuesday_run,"wednesday_run":wednesday_run,
"thursday_run":thursday_run,"friday_run":friday_run,
"saturday_run":saturday_run,"sunday_run":sunday_run,
"erp_id":erp_id,"erp_status":erp_status,
"eveXso_action":eveXso_action
};
var jsonString = JSON.stringify(objectVariable);
var response = nlapiRequestURL(url,jsonString,headers,'PUT');

我收到一个内部服务器错误,但它是在邮递员中执行的。

0 个答案:

没有答案