I have created a custom list view on Task. In Workbench it is displayed under Task within metadata type 'ListView'.

When I pull my metadata using API v43 I can't find the xml definition for it anywhere.

It is not listed as an Unsupported Metadata Type in the Metadata API Developer Guide for Summer '18.

How can I retrieve the metadata for it so that I can then deploy it?

  • Got the same issue, Unable to retrieve/deploy list view on task – benahm Dec 4 '18 at 14:30

They should appear in the Activity object (src/objects/Activity.object). Note that "private" list views will not appear in the Metadata API.

Example SFDX command:

sfdx force:source:retrieve -m CustomObject:Activity
  • Thank you @David-Reed and sfdcfox, that is what I expected, but a custom list view, that is not private, on Task, does not show up in Task.object. – MikeA Jul 17 '18 at 17:23
  • @MikeA did you ever resolve this issue? I have the same problem. – Andreas86 Sep 27 '18 at 12:08
  • @Andreas86 I didn't find it anywhere. We had to make it a manual deployment step. – MikeA Oct 2 '18 at 22:20
  • @MikeA I missed this comment. It actually appears in a CustomObject called Activity. That was my mistake. – sfdcfox Oct 2 '18 at 23:04
  • 1
    @MikeA It might be a MM problem or something. Try using sfdx or another tool and see if you can retrieve the values. I have definitely gotten the list views using sfdx force:mdapi:retrieve and force:source:retrieve. – sfdcfox Oct 3 '18 at 15:32

List views are part of the CustomObject metadata entity. If you open up a .object file (the XML source for a custom object), you'll see top-level entries like this:


that define each of your list views.

Note that the CustomObject type in your package.xml is also used to pull customizations like list views for standard objects. If you include a standard object in your package.xml,


You'll get back all of its non-private list views.

If you just pull down custom fields on a standard object (with the CustomField type), you won't get the list views back.

You can select list views individually with the ListView type in your package.xml:


but they'll still be stored in your .object files.


Adding onto @sfdcfox and @DavidReed answers, you could do a direct pull of the list view with:

sfdx force:source:retrieve -m ListView:Task.My_Task_List_View -u MyConnectedOrg

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.