Skip to main content

Selecting multiple records by ID, is this syntax a bad idea?

  • January 10, 2020
  • 1 reply
  • 19 views

Phil_Deschaine
Forum|alt.badge.img+3

Say I need to get 5, 10, or 50 records, and I have their record_ids. Is this style of syntax a bad idea?

{ filterByFormula: "OR(RECORD_ID() = 'reca9IDlX0gvu32ml', RECORD_ID() = 'recgh3XeMcdmX8uPj', RECORD_ID() = 'reczBZBWZG06DOsCO', RECORD_ID() = 'recXvnMcZKmxyBtUi')" }

I’m generating the innards of the OR with code.

Thanks in advance.

1 reply

Robert_Jurado
Forum|alt.badge.img+4
  • Participating Frequently
  • 6 replies
  • January 17, 2022

Did you get an answer about this? I have a similar situation and trying to figure out the best way to return multiple records by passing the Ids.