Is it possible to use SuiteScript to programmatica...
# suitescript
t
Is it possible to use SuiteScript to programmatically get a record type's search joins, filters, and columns (the info that the Records Browser provides)?
n
I am not sure how you want to use this, but the short answer is yes. You have access to this properties in the search object. There is also a very sweet chrome extension that gets all of that for you. https://chrome.google.com/webstore/detail/netsuite-search-export/gglbgdfbkaelbjpjkiepdmfaihdokglp
But if you need this in a suitescript then the
search
object has
search.columns
and
search.filters
. I think you could get all the information there that you are looking for. Also assuming that you are using SS 2.x
t
Thanks, @nzaleski. That plugin seems to provide the settings for a saved search. What I'm trying to get is a list of the supported joins, filters, and columns for a given record type.
n
Oh I see. I dunno if that is possible. I remember reading an article where someone was trying to achieve a
SELECT * FROM rec
. I think the logic would be similar
Sorry that was in the old NetSuite user group (before it was Oracle) and it doesn't look like the old content got was moved to the new user group. so I wasn't able to find it
t
Thanks, @nzaleski. I've searched everywhere, and I just don't think it's possible to get those values via SuiteScript itself. It is possible to get some of this info using the new REST-based SuiteTalk API, but not everything.