Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

ROQL query - issue (1 Comment)

$
0
0

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.

Version

Service cloud

Viewing all articles
Browse latest Browse all 2504

Trending Articles