ディスカッション

NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.

SuiteTalkのCustomerSearchAdvanceの結果列の中にcountryCodeが含まれている場合、顧客レコードが複数回表示される

編集済:Nov 30, 2025 2:18PM SuiteCloud / カスタマイズ

適用

製品: NetSuite 2025.1

 

シナリオ

Webサービスのアドバンスト検索を使用することで、取得する結果列を定義することができますが、以下のようにcountryCodeを結果列として設定する以下のサンプルSOAPリクエストを送信すると、複数の結果が返されるようになってしまいます。

<soapenv:Body>
        <search xsi:type='platformMsgs:SearchRequest'>
            <searchRecord xsi:type='listRel:CustomerSearchAdvanced'>
                <criteria xsi:type='listRel:CustomerSearch'>
                    <basic xsi:type='platformCommon:CustomerSearchBasic'>
                        <internalIdNumber operator='between' xsi:type='platformCore:SearchLongField'>
                            <searchValue xsi:type='xsd:long'>1searchValue>
                            <searchValue2 xsi:type='xsd:long'>100searchValue2>
                        internalIdNumber>
                    basic>
                criteria>
                <columns xsi:type='listRel:CustomerSearchRow'>
                    <basic xsi:type='platformCommon:CustomerSearchRowBasic'>
                        <countryCode xsi:type='platformCore:SearchColumnStringField'>countryCode>
                        <internalId xsi:type='platformCore:SearchColumnSelectField'>internalId>
                    basic>
                columns>
            searchRecord>
        search>
    soapenv:Body>

 

解決策

顧客レコードに設定することのできるデフォルトの請求先住所は1つだけなので、billCountryCode列を使用します。

サンプルSOAPリクエスト:

<soapenv:Body>
        <search xsi:type='platformMsgs:SearchRequest'>
            <searchRecord xsi:type='listRel:CustomerSearchAdvanced'>
                <criteria xsi:type='listRel:CustomerSearch'>
                    <basic xsi:type='platformCommon:CustomerSearchBasic'>
                        <internalIdNumber operator='between' xsi:type='platformCore:SearchLongField'>
             
タグ付けされた:

ようこそ!

サインイン

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

登録

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

リーダーボード

コミュニティの達人

第2四半期 (4月~6月 2026)

今週のリーダー

今月のリーダー

歴代リーダー