Using the Oracle REST API - how do I overwrite the...
# ask-stanley-ai
v
Using the Oracle REST API - how do I overwrite the default shipping address in a salesorder? what are the properties?
c
AI generated answer (using internal Slack threads):
To overwrite the default shipping address in a sales order using the Oracle REST API, you would need to use a SuiteScript based solution, as the REST and SOAP webservices only allow for setting the address by internal ID reference. Here's a general approach to setting a custom shipping address on a sales order: 1. Set the
shipaddresslist
or
billaddresslist
field. 2. Start setting fields like
shipaddr1
,
shipcity
,
shipcountry
, etc. If you're in dynamic mode, you might need to consider the ordering of fields. In some cases, you might need to set the fields on the
shippingaddress
subrecord and then replace the value of the
shipaddress
field with the value of the subrecord's
addrtext
field. Here's a simple example of how to modify a Sales Order Shipping Address using SuiteScript 2.0:
Copy code
javascript
so.shippingaddress.country = 'US';
Please note that this is a simplified example and you might need to set other fields depending on your specific requirements. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84913218
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837548614
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83541739
Please provide your feedback on this answer.