Lars Butzmann
06/23/2026, 12:43 PMCeligo AI
06/23/2026, 12:43 PMAI generated answer (using internal Slack threads):To detect if a line was deleted in transaction lines when using SuiteQL, you would need to use a combination of SuiteScript and SuiteQL. Unfortunately, SuiteQL does not provide a direct way to track deleted lines in a transaction. However, you can use SuiteScript to create a custom solution for this. Here's a general approach: 1. Use a client script with the
validateDelete event. This event is triggered when a line item is removed from a transaction. In this event, you can capture the details of the line item that is being deleted.
2. Store the captured information in a custom field or a custom record. This will allow you to keep a record of all line items that have been deleted. You can capture information such as who deleted the line, when it was deleted, what item was deleted, the quantity, any custom fields, and so on.
3. Optionally, you can also prompt the user for a reason for the deletion. This can be done within the validateDelete method. You can capture this reason and store it along with the other information.
4. Once you have this information stored, you can use SuiteQL to query this custom field or custom record to get a list of all deleted line items.
Please note that this is a custom solution and would require scripting knowledge to implement. Also, this solution would only track line deletions going forward from the time it is implemented. It would not be able to track line deletions that occurred before it was implemented.
******
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
06/23/2026, 12:44 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.809753478
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806640685
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806091368
Celigo AI
06/23/2026, 12:44 PM