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
Dave The RaveDave The Rave 

Change metadata of listview object for existing listviews

I would like to add a column to all existing listviews on the case object. After some searching in Google, I understand that it is possible to amend the metadata of the listview object.

The question is how to do this? 

The addition column is SuuportedVendor__c

Thanks,

Dave
ShirishaShirisha (Salesforce Developers) 
Hi Dave,

Greetings!

You need to retrieve metadata for the all the listviews available on the Case Object using the below package.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Case.ListViewName1</members>
        <members>Case.ListViewName2</members>
        <name>ListView</name>
    </types>
    <version>47.0</version>
</Package>
Once,you retrieve the metadata then you will find the sample .xml files as mentioned in the below document.

Then,you would need to edit all the .xmls of the listviews and deploy them using workbench which will be the easiest way.

Sample .xml for listview:https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_listview.htm

How to retrieve and deploy using Workbench:https://help.salesforce.com/articleView?id=000315117&language=en_US&type=1&mode=1

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Dave The RaveDave The Rave
Hi Shirisha, Thanks for your answer. I am an administrator, please explain how I use this package.xml. Do I need to open the developer console? Thanks, Dave
ShirishaShirisha (Salesforce Developers) 
Hi Dave,

You can check this video to know how to retrieve the listviews using the above sample package.xml:

https://www.youtube.com/watch?v=5kr_z6FBSL8

Once,you download the payload then update the metadata using Workbench.

https://www.youtube.com/watch?v=CyWSAeQbANQ

Thank you!
Mahesh V 27Mahesh V 27
Hi Shirisha,

Can you please let me know which folder would this file be located once I download it from workbench?

Regards,
Mahesh