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
    Commented Dec 4, 2018 at 14:30

3 Answers 3


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

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
    Commented Jul 17, 2018 at 17:23
  • @MikeA did you ever resolve this issue? I have the same problem.
    – Andreas86
    Commented Sep 27, 2018 at 12:08
  • @Andreas86 I didn't find it anywhere. We had to make it a manual deployment step.
    – MikeA
    Commented Oct 2, 2018 at 22:20
  • @MikeA I missed this comment. It actually appears in a CustomObject called Activity. That was my mistake.
    – sfdcfox
    Commented Oct 2, 2018 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
    Commented Oct 3, 2018 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.

You must log in to answer this question.

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