netsuite saved search to check item modified in th...
# ask-stanley-ai
k
netsuite saved search to check item modified in the last 30 minutes, inventory quantity changed in the last 30 minutes
c
AI generated answer (using internal Slack threads):
To create a NetSuite saved search to check if an item was modified in the last 30 minutes or if the inventory quantity changed in the last 30 minutes, you can use the
Date Last Modified
field and a relative date filter. For the item modification check, you can set the criteria in your saved search to
Date Last Modified
is within the last 30 minutes. For the inventory quantity change, it's a bit more complex. You might need to join criteria of Transactions : Date Created and filter that with a time formula. Then only items with recent transactions will show. If you are using SuiteScript, you can add a filter to your search. Here is a general example of how you might do this:
Copy code
javascript
var mySearch = search.create({
   type: "item",
   filters: [
      ["lastmodifieddate", "within", "today"]
   ]
});
Please note that this is a general example and you might need to adjust it to fit your specific needs. Remember, you can also use the
Search.filterExpression
for more complex searches. You can find more information about this in the NetSuite Help Center. ****** 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.848266602
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847961426
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847045779
Please provide your feedback on this answer.