-1

i have a listView that display a number of records, and i want this listView to display only 40 records. if there is 1000 records i want just 40 records selected randomly. How can i do that?

Regards

Amir

1

1 Answer 1

0

It is not possible to have the 40 records selected randomly in a list view.

You would need to use a custom component for this, using Lightning Web Components.

To randomise the order, you can use the Math.random() method in Apex to generate random numbers and only display 40 randomly selected records.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .