適用
製品: NetSuite 2023.1
シナリオ
Webサービスを使用して顧客レコードの中の住所サブレコードのカスタムフィールドの値を取得したい。
解決策
住所サブレコードのカスタムフィールドの値を取得するためにはWebサービスのGETオペレーションを使用します。
SOAPリクエスト例:
<soapenv:Envelope>
<soapenv:Body>
<get xsi:type='platformMsgs:GetRequest'>
<baseRef xsi:type='platformCore:RecordRef' internalId='13' type='customer'/>
get>
soapenv:Body>
</soapenv:Envelope>
注意: 内部ID=13は顧客の内部IDとなります。
住所サブレコードのカスタムフィールドの値を返すSOAPレスポンスの例
<listRel:addressbook>
<listRel:defaultShipping>truelistRel:defaultShipping>
<listRel:defaultBilling>truelistRel:defaultBilling>
<listRel:isResidential>falselistRel:isResidential>
<listRel:label>4064 Oakmound RoadlistRel:label>
<listRel:addressbookAddress
xmlns:platformCommon="urn:common_2016_2.platform.webservices.netsuite.com">
<platformCommon:country>_unitedStatesplatformCommon:country>
<platformCommon:addressee>Eugene's SalonplatformCommon:addressee>
<platformCommon:addr1>4064 Oakmound RoadplatformCommon:addr1>
<platformCommon:city>ChicagoplatformCommon:city>
<platformCommon:zip>60640platformCommon:zip>
<platformCommon:addrText>Eugene's Shop