I am retrieving a select field with options but th...
# suitescript
d
I am retrieving a select field with options but the field.getSelectOptions() only returns 1,000 records. Is there a way around this and retrieve all options of a select field?
s
If you know the list the field sources from, you can query for it instead.
d
@Steffen Andersland Hmm.. I'm just getting the custom field Id so I guess I'd have to get the custom field record first and try to get to the list?
s
What record is the field sourcing from? Chances are if there are more than 1000 results, that the solution you're looking for could be handled a different way. What do you intend to do with this list once you have it?
d
it's a custom field on an employee list that is sourcing from some other list, so preferably I'm just looking for a way to get past 1,000 options with the .getSelectOptions(). Using it in a restlet for api integration. Any other ideas?
w
AFAIK you can't get past the limitation. You need to search/query the source instead. Maybe you could use .setText() instead of .setValue() if you're using dynamic mode.