Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Filtering records with the Last Modified time in Laravel

Topic Labels: Custom Extensions
339 0
cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, Everyone!
I have not a big issue on filtering the records by their Last Modified Time field.
Here is the code:

$airtable = new Airtable(array(
‘api_key’ => config(‘services.airtable.api_key’),
‘base’ => config(‘services.airtable.base_id’),
));

    $today_date = Carbon::now()->toDateString();
 
    $filtered_row = $airtable->getContent( 'Invoiced', ['filterByFormula' =>  "AND( LastModifiedTime = '. $today_date .' )"]);

This is in the Laravel Controller.
But it’s not working, returns the empty array as response.
Anybody, help me out.
Thank you in Advance!

0 Replies 0