Nour Khaled
01/14/2025, 8:20 AMCeligo AI
01/14/2025, 8:21 AMAI generated answer (using internal Slack threads):The error
UNABLE_TO_DETERMINE_RECORD_TYPE_FOR_SAVED_SEARCH_ID_1
typically occurs when you are trying to load a saved search in SuiteScript and NetSuite is unable to determine the type of the saved search. This is common when dealing with custom record types.
To resolve this issue, you need to specify the type of the saved search when loading it. The search.load
function accepts a type
parameter that you can use to specify the type of the saved search. Here is an example:
javascript
var mySearch = search.load({
id: 'customsearch_my_custom_search',
type: 'customrecord_my_custom_record'
});
In the above example, customsearch_my_custom_search
is the ID of the saved search and customrecord_my_custom_record
is the type of the saved search.
If you are unsure of the type of the saved search, you can find it by going to Customization > Lists, Records, & Fields > Record Types in NetSuite. The ID listed there is what you want to use as the type
parameter.
Please note that not all types of saved searches are supported in SuiteScript. For example, saved searches of type 'Report' are not supported. In such cases, you may need to recreate the search as a different type or use an alternative method to retrieve the data.
******
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/14/2025, 8:21 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.904358804
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.896434128
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.892605722
Celigo AI
01/14/2025, 8:21 AM