Help

Filtering records with the Last Modified time in Laravel

Topic Labels: Custom Extensions
1085 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Maximus_Dev
4 - Data Explorer
4 - Data Explorer

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