Hi All,
I'm trying to import existing customer records from an external system into NetSuite and would like to link the customer's addresses to the external addresses. I'm using the REST APIs to link up the systems.
It's perfectly possible to save a Customer with an externalId field. It's properly saved and the customer can be later looked up by the saved id.
However, when I try to specify an externalId on the address when saving the customer, the id doesn't seem to get saved at all. It's never returned in consequent requests and it's not possible to refer to an address by eid:my-id syntax.
According to the API documentation the externalId field is supported on AddresBookAddress and the API call does not return any warnings/errors.
Any thoughts why the externalId is not getting saved on a customer's address?
For background, here's the request I'm making:
POST /service/rest/record/v1/customer
{
"companyName": "Bob's Widgets",
"email": "bob@example.com",
"externalId": "bob-id-9",
"addressBook": {
"items": [
{
"addressBookAddress": {
"addr1": "123 Main Str",
"city": "Burlington",
"state": "MA",
"zip": "01803",
"externalId": "bob-address-9"
}
}
]
}
}
And here's the documentation fragment that describes this field:
Thanks in advance!