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
Robert Wambold 10Robert Wambold 10 

What is the best way to display Listview metadata?

Hello all,

I have been tasked with creating a way to monitor who is Creating or Modifing Listviews. I know I can view Listviews with SOQL however I would like to use VF.

Is it even possible to be notified when a Listview is Created or Modified? How?



Best Answer chosen by Robert Wambold 10

One way would be to use Scheduled Apex that runs every so often, queries for ListViews and emails you whenever a new one is created. You'd need to track when the last time the job was run, perhaps using a custom setting, then see if any new list views have been created since the last run.