if i call record.create whether the id is assigned...
# ask-stanley-ai
c
if i call record.create whether the id is assigned randomly or asec?
c
AI generated answer (using internal Slack threads):
When you call
record.create
in NetSuite, the internal ID that is assigned to the new record is not assigned in a strictly ascending order. While the assignment of internal IDs to new records is sequential, the sequence of internal IDs does not indicate when or in which order records were added. This is due to the way NetSuite's backend database optimization works, which may issue primary keys and reserve them in batches. Therefore, the internal ID should not be relied upon for sorting or determining the order in which records were created. If you need to ensure that records are always sorted in the correct order and that the last one created is always the last in the list, it is recommended to sort by the date created. This is considered the most reliable way to achieve this. If you need the ID of a new record, you would generally do that in an afterSubmit User Event. For more information, you can refer to the NetSuite Help Center article: [Internal IDs Do Not Indicate When Record Was Created](https://system.netsuite.com/app/help/helpcenter.nl?fid=section_N3432681.html) ****** 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.7886464
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.784358084
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.783391416
Please provide your feedback on this answer.