James Morris
08/06/2025, 7:13 PMCeligo AI
08/06/2025, 7:13 PMAI generated answer (using internal Slack threads):In NetSuite 2.1 SuiteScript, you can define a saved search criteria for the last modified date with a specific time of day by using a combination of search filters and date manipulation. First, you need to create a new Date object and manipulate it to represent the specific time of day you want to filter by. Then, you can use this Date object as a filter in your saved search. Here is a sample code snippet:
javascript
var dateObj = new Date();
dateObj.setHours(14, 0, 0, 0); // Set the time to 2:00 PM
var searchObj = search.create({
type: "salesorder",
filters:
[
["lastmodified","after",dateObj]
]
});
var searchResult = searchObj.run().getRange(0, 100);
In this example, the saved search will return all sales orders that were last modified after 2:00 PM on the current day.
Please note that the time is set in the server's timezone, so you may need to adjust it according to your needs.
******
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
08/06/2025, 7:14 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848162532
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841814816
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836200237
Celigo AI
08/06/2025, 7:14 PM