KM
12/22/2025, 9:53 AMCeligo AI
12/22/2025, 9:53 AMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To create a search for a transaction with multiple filters using SuiteScript 1.0, you can use the
nlapiSearchRecord function. Here is an example of how you can do it:
javascript
var transactionSearch = nlapiSearchRecord("transaction",null,
[
["file.created","onorbefore","today"],
"AND",
["mainline","is","T"]
],
[
new nlobjSearchColumn("tranid"),
new nlobjSearchColumn("internalid","file",null)
]
);
In this example, the search is created for the "transaction" type. The filters are set to find transactions where the file was created on or before today and where the mainline is true. The columns to be returned are "tranid" and the internal id of the file.
Please note that the nlapiSearchRecord function is part of SuiteScript 1.0 API, and it might not be available or work differently in SuiteScript 2.0.Celigo AI
12/22/2025, 9:53 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851257384
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844421446
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83795172
Celigo AI
12/22/2025, 9:53 AMAly
12/22/2025, 2:11 PMAly
12/22/2025, 2:11 PMKM
12/22/2025, 2:12 PM