rnldpbln
rnldpbln

Reputation: 674

Error while accessing resource: Please enter values for sector

I would like to know how to create the correct body for creating a customer record. I am using the Postman examples that I downloaded from Netsuite and I'm accessing /record/v1/customer as POST, but I keep getting this Sector and Subsidiary error. By the way, I don't have access to the Netsuite dashboard for now. I am still waiting for my company to give me access. Would really appreciate the help, or even just pointing me to the right direction. Thanks a lot!

strong text

Upvotes: 1

Views: 1778

Answers (2)

Silas Palmer
Silas Palmer

Reputation: 2985

Try a get request to: /record/v1/customer

That will list all the customers currently in your account, by ID (hopefully there are some).

Pick one of those IDs (eg 99) and make a get request to: /record/v1/customer/99

and that will return the customer record in JSON. Have a look for something that looks like sector in there.

Upvotes: 1

Jala
Jala

Reputation: 919

Sector is not a NetSuite standard field name. It could either be a custom entity field or a standard field that was renamed to Sector. You will have to get the correct ID for this field from your account.

Upvotes: 2

Related Questions