Hi all, is there any way to get the `List/Record` ...
# suitescript
b
Hi all, is there any way to get the
List/Record
(id:
selectedrecordtype
) data for any field?
record.getField
doesn’t provide much information
b
b
Thanks @battk Can this be used only for custom records or for custom fields on any kind of record? Currently, with NetSuite search and JS map/filter, I have a list of custom fields present in vendor bills record type. From there, I am having hard time making the query you mentioned as I don’t see vendor bills/transaction in the join for that record.
I’m new to query/suiteql/workbook, so I might be be missing something here.
Finally was able to get results. Sample code:
Copy code
const resultSet = query.runSuiteQL({
            query: "SELECT * FROM CustomField where scriptid = '" + billFields[2].id.toUpperCase() + "'",
        });
I needed that
toUpperCase()
to make it work Thanks again @battk, appreciate your help as always!
e
there’s a good plugin that provides this data right in the help when you click on the label. I think it is Advanced Field Help - look in Chrome Extensions
b
I need it in the SuiteScript not in the UI 🙂