Luis
01/13/2025, 2:37 PMCeligo AI
01/13/2025, 2:37 PMAI generated answer (using internal Slack threads):Yes, you can access the system notes of an inventory item using the query module in SuiteScript. You can use the
N/query
module to run SuiteQL queries against your NetSuite data.
Here is an example of how you might do this:
javascript
var myQuery = query.create({
query: "SELECT * FROM systemNote WHERE recordType = 'inventoryItem' AND recordId = {yourItemId}"
});
var resultSet = myQuery.run();
var results = resultSet.getRange({
start: 0,
end: 100
});
for (var i = 0; i < results.length; i++) {
var result = results[i];
var systemNote = result.getValue({
name: 'note'
});
log.debug('System Note', systemNote);
}
In this example, replace {yourItemId}
with the internal ID of the inventory item you want to access the system notes for. This will return all system notes for that inventory item.
******
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
01/13/2025, 2:38 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847531
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83715713
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831546485
Celigo AI
01/13/2025, 2:38 PM