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
Bhushan_27Bhushan_27 

Idedntify and flag most recent child record

I want to identify most recent created/updated record form a list of records and seting its flag as true , and setting flag of all other remaining records as false. How Can i achive this?

Rahul SharmaRahul Sharma

Hi Bhushan,

Please elaborate on what you are trying to do.

Bhushan_27Bhushan_27

Hi Rahul,

 

There is a  Account that will have multiple child records(of Custom Object).  So I would expect for each Account to be able to identify the most recent child record  for each record type of child object.  E.g. There could be lots of child object records, with different recordtype,i  just want to be able to select the most recent of each record type related to that Account. 

 

Once  identified these they sholud be flagged(Set Most recent Checkbox as true).

 

Thanks;