Hello, is it possible to get an internal id assign...
# ask-stanley-ai
p
Hello, is it possible to get an internal id assigned to a record for an object if the record was deleted
c
AI generated answer (using internal Slack threads):
In NetSuite, once a record is deleted, its internal ID is not retained or reused. The internal ID is unique to each record and is assigned sequentially. When a record is deleted, the internal ID associated with that record is also deleted and not reassigned to any new records. In the context of SuiteScript, you can only access the internal ID of a record after it has been created and saved. This is typically done in the afterSubmit event using
context.newRecord.id
. However, once a record is deleted, you cannot retrieve its internal ID because it no longer exists in the system. ****** 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.816411078
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.810277104
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.804309726
Please provide your feedback on this answer.