Lorenzo
10/22/2024, 4:45 PMCeligo AI
10/22/2024, 4:45 PMAI generated answer (using internal Slack threads):To set custom transaction body fields when creating a sales order through REST API, you would need to include the internal ID of the custom field and the value you want to set in the payload of your POST request. Here is a sample payload:
json
{
"recordType": "salesOrder",
"fields": {
"entity": {
"id": "123"
},
"customFieldList": {
"customField": [
{
"scriptId": "custbody_custom_field_id",
"value": "custom value"
}
]
}
}
}
In this example, custbody_custom_field_id
is the internal ID of your custom field and custom value
is the value you want to set for this field.
Please note that the internal ID of a custom field in NetSuite typically starts with custbody_
. You can find the internal ID of a custom field by navigating to Customization > Lists, Records, & Fields > Transaction Body Fields > List
in your NetSuite account.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
10/22/2024, 4:45 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832929552
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831646442
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827214837
Celigo AI
10/22/2024, 4:45 PM