ディスカッション
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
nlapiRequestURLを使用し、Webサービスを呼び出す
適用
製品: NetSuite 2022.1
シナリオ
NetSuiteでは、SuiteScriptを使用し、SOAP Webサービスリクエストを呼び出すことができます。バージョン2013.2は引き続き使用可能ですが、サポートされていないため、新しいバージョンのWSDLに更新する必要があることに注意してください。これはSuiteAnswers ID 10817で確認できます。以下は、nlapiRequestURL APIを使用し、Webサービスリクエストを呼び出すサンプルスクリプトです。
注:以下のコードのaccountIDは、設定 > 会社 > 会社情報の[アカウントID]フィールドに表示されるアカウントIDを指します。
解決策
function suitelet(request, response){ var endPoint = 'https://.suitetalk.api.netsuite.com/services/NetSuitePort_2013_2'; var stSoapAction = 'get'; var soapHeaders = new Array(); soapHeaders['Host'] = ".suitetalk.api.netsuite.com"; soapHeaders['Content-Type'] = 'text/xml; charset=utf-8'; soapHeaders['SOAPAction'] = stSoapAction; try{ email = 'webservices_mcelosa@lparadise.com'; password = '*********'; account = 'ACCT001'; applicationId = 'F45B5C25-9672-4871-8386-6519BDCE4DD5'; var soap=''; soap += ''; soap += ''; soap += ''; soap += ' xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"'; soap += ' xmlns:xsd="http://www.w3.org/2001/XMLSchema"'; soap += ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'; soap += ' xmlns:platformCore="urn:core_2013_2.platform.webservices.netsuite.com"
タグ付けされた:
0