ディスカッション
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Suiteletを介してURLヘッダーを表示
適用
製品: NetSuite 2020.1
シナリオ
他のNSページまたはサードパーティのアプリケーションのHTTPヘッダーをテストするときにSuiteletsで使用できる関数
解決策
SuiteScript 1.0:
function suitelet(request, response){
if ( request.getMethod() == 'GET' ){
var form = nlapiCreateForm('Suitelet Form');
form.addField('custpage_urlfield','Text', 'URL');
form.addSubmitButton('Submit');
response.writePage( form );
}else{
var url = request.getParameter('custpage_urlfield');
var res = nlapiRequestURL(url);
var allHeaders = res.getAllHeaders(); // get all headers from the response
//all headers will be shown in a table
var out = '';
//run through all headers
for(var h in allHeaders) {
//we know that
タグ付けされた:
0