Ajith Kumaran
03/18/2025, 9:47 AMCeligo AI
03/18/2025, 9:47 AMAI generated answer (using internal Slack threads):To create a custom record instance using REST web services in NetSuite, you can follow these steps: 1. First, you need to make a POST request to the endpoint
/record/v1/{recordType}
where {recordType}
is the type of the record you want to create. For custom records, the {recordType}
would be customRecordType/{customRecordTypeId}
where {customRecordTypeId}
is the internal ID of the custom record type.
2. The body of the POST request should be a JSON object that represents the record you want to create. The structure of this JSON object will depend on the fields of the custom record type.
Here is an example of how the request might look like:
json
POST /record/v1/customRecordType/{customRecordTypeId}
{
"name": "My Custom Record",
"customFieldList": {
"customField": [
{
"scriptId": "custrecord_my_custom_field",
"value": "My Custom Field Value"
}
]
}
}
In this example, custrecord_my_custom_field
is the script ID of a custom field in the custom record type, and My Custom Field Value
is the value you want to set for that field.
3. If the record is created successfully, the response will be a 201 Created status code with no content. To get the internal ID of the created record, you can make a GET request to the endpoint /record/v1/{recordType}/{id}
where {id}
is the internal ID of the record.
Please note that there are some limitations when working with custom records through the REST API. For more information, you can refer to the NetSuite Help Center or the Oracle Documentation.
******
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
03/18/2025, 9:47 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824374199
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822730064
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822618842
Celigo AI
03/18/2025, 9:47 AMCeligo AI
03/18/2025, 12:37 PMCeligo AI
03/18/2025, 12:37 PM