Skip to main content
Answer

Can I "filter" on selectRecordsAsync?

  • September 18, 2020
  • 1 reply
  • 146 views

Forum|alt.badge.img+13

The documentation page for RecordQueryResult says “…filtered to a useful subset of the records in the table.”

I see that it’s possible to sort and specify which fields are returned but I can’t figure out how to actually filter on selectRecordsAsync.

Being able to filter here would be awesome because then I won’t have to manually create views. (Or if it were possible to programmatically create Views I could create the ones I need when a new employee is onboarded.)

Thanks!

Best answer by kuovonne

You can’t currently specify a filter when you call selectRecordsAsync. However, the records might be filtered if you call it from a view instead of from a table.

You have to use JavaScript to filter the records after you retrieve them.

1 reply

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • Answer
  • September 19, 2020

You can’t currently specify a filter when you call selectRecordsAsync. However, the records might be filtered if you call it from a view instead of from a table.

You have to use JavaScript to filter the records after you retrieve them.