Skip to main content
Solved

I want to filter multiple data using json url

  • July 28, 2020
  • 7 replies
  • 48 views

Forum|alt.badge.img+4

this is my table
https://api.airtable.com/v0/app7MvgC7cKX7Zq7n/student?filterByFormula=class="2"&sex="male"

Best answer by Justin_Barrett

First, your formula should be a valid Airtable formula. In Airtable’s formula syntax, the & operator combines items into a string. To get a valid test of both conditions, you will need to wrap the test in Airtable’s AND() function. Also, Airtable’s string comparisons are case-sensitive, so “male” should be “MALE” to match the data in your table. The modified formula should be:

AND(class="2", sex="MALE")

Then, as @Bill.French pointed out, you need to properly URL-encode that formula.

7 replies

Forum|alt.badge.img+19
  • Inspiring
  • 3263 replies
  • July 28, 2020

Assuming the filter is correct, that URL needs to be URL-encoded.


Forum|alt.badge.img+4
  • Author
  • New Participant
  • 4 replies
  • July 28, 2020

Assuming the filter is correct, that URL needs to be URL-encoded.


can you pls hlp me to this url


Forum|alt.badge.img+19
  • Inspiring
  • 3263 replies
  • July 28, 2020

can you pls hlp me to this url


Sure, simply take the URL to this site and it will URL-encode it for you.


Forum|alt.badge.img+4
  • Author
  • New Participant
  • 4 replies
  • July 29, 2020

Sure, simply take the URL to this site and it will URL-encode it for you.


It’s not working for me :frowning:


Forum|alt.badge.img+19
  • Inspiring
  • 3263 replies
  • July 29, 2020

It’s not working for me :frowning:


This is not enough information for anyone to help you.


Justin_Barrett
Forum|alt.badge.img+21
  • Inspiring
  • 4647 replies
  • Answer
  • August 4, 2020

First, your formula should be a valid Airtable formula. In Airtable’s formula syntax, the & operator combines items into a string. To get a valid test of both conditions, you will need to wrap the test in Airtable’s AND() function. Also, Airtable’s string comparisons are case-sensitive, so “male” should be “MALE” to match the data in your table. The modified formula should be:

AND(class="2", sex="MALE")

Then, as @Bill.French pointed out, you need to properly URL-encode that formula.


Forum|alt.badge.img+4
  • Author
  • New Participant
  • 4 replies
  • August 4, 2020

First, your formula should be a valid Airtable formula. In Airtable’s formula syntax, the & operator combines items into a string. To get a valid test of both conditions, you will need to wrap the test in Airtable’s AND() function. Also, Airtable’s string comparisons are case-sensitive, so “male” should be “MALE” to match the data in your table. The modified formula should be:

AND(class="2", sex="MALE")

Then, as @Bill.French pointed out, you need to properly URL-encode that formula.


Thank you for your feedback