ディスカッション

NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
今週の問題 / Question of the Weekをお見逃しなく!午後2時2026年2月26日ET までに答えをコメントし、特典を獲得しましょう!詳しくはこちらをクリックしてください。
Community Articles: What Topic Should We Cover Next? Your idea could be our next feature—drop your suggestion now and spark the next big discussion!

SuiteScript 1.0を介して、顧客レコードの住所サブレコードを取得する保存検索を作成する

編集済:Jun 2, 2025 2:48PM SuiteCloud / カスタマイズ

適用

製品:  NetSuite 2023.1

 



シナリオ

住所サブレコードにて、SuiteScript 1.0の保存検索を実行します。

 



解決策

顧客の内部IDを使用して、住所サブレコードの全ての値が返されます。以下のサンプルコードで果たします。

 
var customerSearch = nlapiSearchRecord("customer", null, 
    [ 
        ["internalid", "anyof", "16"] // 対象顧客の内部IDに変更 
    ], 
    [ 
        new nlobjSearchColumn("internalid", "Address", null), 
        new nlobjSearchColumn("address", "Address", null), 
        new nlobjSearchColumn("address1", "Address", null), 
        new nlobjSearchColumn("address2", "Address", null), 
        new nlobjSearchColumn("address3", "Address", null), 
        new nlobjSearchColumn("addressinternalid", "Address", null), 
        new nlobjSearchColumn("addresslabel", "Address", null), 
        new nlobjSearchColumn("addressphone", "Address", null), 
        new nlobjSearchColumn("addressee", "Address", null), 
        new nlobjSearchColumn("attention", "Address", null), 
        new nlobjSearchColumn("city", "Address", null), 
        new nlobjSearchColumn("country", "Address", null), 
        new nlobjSearchColumn("countrycode", "Address", null), 
        new nlobjSearchColumn("isdefaultbilling", "Address", null), 
        new nlobjSearchColumn("isdefaultshipping", "Address", null), 
        new nlobjSearchColumn("state", "Address", null), 
        new nlobjSearchColumn("statedisplayname", "Address", null), 
        new nlobjSearchColumn("zipcode", "Address

ようこそ!

サインイン

完全な詳細を表示するには、サインインしてください。

登録

アカウントがありませんか?ここをクリックして始めましょう!

リーダーボード

コミュニティの達人

第 1 四半期 (1月~3月 2026)

今週のリーダー

今月のリーダー

歴代リーダー