I am trying to create a search in SuiteScript 2.0 to find email templates on a NetSuite account. I can create the search on the NetSuite UI, but this record type(emailtemplate) is not supported by the "NetSuite: Search Export" Chrome plugin.
My JavaScript Search currently looks as follows:
var templates = search.create({
type: "emailtemplate",
filters:
[
],
columns:
[
search.createColumn({
name: "entityid",
sort: search.Sort.ASC
}),
]
}).run().each(function(result){
//additional code
return true;
});
According to the NetSuite Schema Browser, "emailtemplate" is the correct record type - this however does not seem to be recognized by NetSuite.
I receive the following error when running my code:

I assume that the schema browser and actual record name differs. Any help or guidance on this would be much appreciated.