function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ankit Khurana24Ankit Khurana24 

how to get id of 20 latest created cases

1.i need to get id of 20 latest created cases.

sfdcfoxsfdcfox
SELECT Id FROM Case ORDER BY CreatedDate DESC LIMIT 20

 

Ankit KhuranaAnkit Khurana

i ddit..now i have to show..five f fields of these cases in grid view inclding one field of the to be assigned ownername.

 

ran67ran67

The  fields which u want to show on the Grid .Retrive the Fields in the Cases Query

 

Select id,owner.name,name,etc  From Case Order By  Createddate  DESC Limit 20