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
Ceejay djoCeejay djo 

Export List Views Metadata

How do I export List Views Metadata? I have a need to export metadata of list views. Most especially, I need to export the List view names and the Roles/groups it has been shared to. 

​Any help would be appreciated.
You can make use of Listview API to retrieve the information about list view for every object. The List view API will provide information like filter used, list view name, column details, and scope of the listview. Check this link for more details about list view API -

Check this blog post to understand about more about list view API -
Ceejay djoCeejay djo
I am not sure that is what I am looking for. I need to export for list views metadata not for the list view records
Pranay JaiswalPranay Jaiswal

You can use this package.xml to retrieve List view metadata.


<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="">
</Package> Migration tool to your rescue.