Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Community Poll: What sort of content would you like to see more of?

Is it possible to create a customer record with contact in REST API?

edited Dec 15, 2022 3:41PM in Ask A Guru 3 comments

Hello, trying to create Customer record via postman, Customer record with address is created with no problems, but having difficulties around adding contact:

when using code below, Customer record is created but not contact:

error code: X-NetSuite-PropertyValidation: Unknown field name contactroles. The field does not exist on this record instance.

       "contactroles": {

                    "items": [{

               "Contact": {

                    "title": "CTO",

               "subsidiary": { "id": "5" },

                  "entityId": "first last",

                     "email": "api@api.com.au",

                     "phone": "0400000000"

                    }}]

                    

            }


i tried using "contactlist", but also receive an error.


As far as i see Customer record API is no longer in Beta so maybe there is a solution ?


Thanks

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 2 ((Apr-Jun 2024) )

This Week's Leaders

This Month's Leaders

All Time Leaders