Skip to main content
Solved

Filter By record id

  • July 20, 2020
  • 1 reply
  • 41 views

Hello.
I am trying to implement a search functionality using the record id is this possible given that the id isn’t in one of the fields?
As an example, I have the following records

records: [
{
id: “rec2PRjhAMAh2O64a”,
fields: {
Name: “blah blah”,
}},
{
id: “rec2otu8JF7ijlmA4”,
fields: {
Name: "klkdsd ",
},]
I want to search by the id. Is this possible?

Best answer by kuovonne

If you are using the Standard REST API, the only way to request filtered records is with filterByFormula, which only works on existing fields. If you have creator access to the base, you could create a new formula field that displays the record id.

1 reply

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • 6009 replies
  • Answer
  • July 20, 2020

If you are using the Standard REST API, the only way to request filtered records is with filterByFormula, which only works on existing fields. If you have creator access to the base, you could create a new formula field that displays the record id.