Topic by vijay kalidasan
Content
Hi All,
i want to pull id of last *** reservation records of a custom reservation object that i created. The code i am using is custom process model to pull last 6 records.
$maxbookingtime = RNCPHP\ROQL::query("select id from CO.Reservation order by BookingTime desc limit 6;" )->next();
$maxbookingtimeRes =$maxbookingtime->next();
The above query returns only one id and how i can modify the query to get last 6 values.