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
Steffen Andersland
09/23/2021, 1:43 AM
If you know the list the field sources from, you can query for it instead.
d
Dan P
09/23/2021, 1:45 AM
@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
Steffen Andersland
09/23/2021, 1:50 AM
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
Dan P
09/23/2021, 4:30 AM
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
Watz
09/23/2021, 7:15 AM
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.