If a record is deleted (Purchase Order) can I get ...
# ask-stanley-ai
r
If a record is deleted (Purchase Order) can I get the items sublist in a user event script
c
AI generated answer (using internal Slack threads):
In NetSuite, when a record is deleted, you cannot access its sublists in a User Event Script. This is because the context of the script does not retain the old record data after deletion. In the context of a User Event Script, you have access to
context.newRecord
and
context.oldRecord
. However, once a record is deleted,
context.oldRecord
is no longer accessible. If you need to keep track of the deleted rows, you would have to do so manually. This could be done in a client script and passed to the suitelet, but it would not be possible in a User Event Script after the record has been deleted. ****** 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.82979542
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818325222
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818113327
Please provide your feedback on this answer.