would it be possible to reverse-search an employee...
# suitescript
u
would it be possible to reverse-search an employee's Employee Record using their defined name *that doesn't involve using Saved Search? Context is I have a custom record anyone can create with the Owner field on it, and I'd like to retrieve the owner's Employee record, despite the name not really coming with any link nor ID. editing for clarity.
b
honestly you should make the owner field a select field so that you can get the internal id from it
u
I was using the default Owner field Netsuite provides when you create a custom record type, but that's a good idea. Thanks.
b
that field is already a select field
how are you getting its value
u
record.getValue? Should I be opting for a different approach?
b
that should give you the internal id
🙏 1
u
I went and reviewed my code, and it appears I was using getText on that part. Oversight on my end, but thanks again for clarifying that.