After successfully following the steps detailed in the following articles related to SOAP Web Services Integration:
- Enabling SOAP Integration, as explained in the article New To NetSuite | Pre-requisites to Setup SOAP and REST Web Services;
- Creating a SOAP Integration by following the instructions in the articles New to NetSuite | How to Create Integration Records and New to NetSuite | How to Create Access Tokens: For Administrators;
- Including the header tag in SOAP Web Services by referring to the article New To NetSuite | How to create a header using TBA in SOAP Web Services?
You are now ready to interact with records within NetSuite. One of the key operations available in SOAP Web Services for accessing Customer records is the "update" operation. This refers to the process of modifying or updating existing data within a system. In the context of NetSuite, which provides SOAP-based web services for integration and data manipulation, the "update" operation involves modifying records in the NetSuite system using the SOAP API.
Here’s the sample body in updating a customer record.
<soapenv:Body> <update xsi:type='platformMsgs:UpdateRequest'> <record xsi:type='listRel:Customer' internalId='994'> <companyName xsi:type='xsd:string'>SAMPLE SOAP CUSTOMER</companyName> <phone xsi:type='xsd:string'>123456789</phone> <comments xsi:type='xsd:string'>Changed Company Name and Phone Number via SOAP WS</comments> </record> </update> </soapenv:Body>
Note:
- To update customer records, employ the UpdateRequest type for the update operation. Ensure you utilize the internalID of the customer whose information you aim to modify.
- You have the flexibility to enhance the Update request by including additional field ID for updating records. Moreover, this capability extends beyond Customer records, allowing updates across various record types. Check this article to check all the records and field ID used in SOAP Web Services, New to NetSuite | Navigation in SOAP Web Services Schema Browser
- When updating a list of records (a sublist) within a business record you CANNOT update a specific item in the list. Instead, you must interact with the sublist as a whole. For details, see Sublists in SOAP Web Services.
You can check different New to NetSuite Articles about different operations, See the following.
Stay tuned for upcoming articles where we will explore SOAP Web Services under SuiteCloud Product Area. Stay updated by following the New to NetSuite > SuiteCloud category to receive notifications whenever new articles are published.