1

I have all the classes and everything else but I could not get the any objects in MS VS Code. What am I doing wrong? I did use SFDX: Retrieve Source in Manifest but that did not help either.

This is what I have tried so far. Where am I making the mistake?

    <types>
        <member>Account</members>
        <name>StandardObject</name>
    </types>


    <types>
    <member>*</members>
    <name>StandardObject</name>
   </types>


   <types>
        <member>*</members>
        <name>CustomObject</name>
    </types>

Thanks in advance!

2
  • 2
    What is in your manifest? What objects are you trying to retrieve?
    – David Reed
    Commented Oct 11, 2019 at 17:24
  • 1
    I am trying to pull all the objects. In the manifest, it shows Apex Class, Apex Component, Apex Page, Trigger, Static resources.
    – mike
    Commented Oct 11, 2019 at 18:07

1 Answer 1

3

You'll need to include custom objects in your manifest in order to retrieve them.

Add an entry like

<types>
     <members>*</members>
     <name>CustomObject</name>
</types>

to your package.xml to retrieve all custom objects.

Note that this will not retrieve customizations to standard objects. You'll need to add an individual <members> line for each standard object you wish to retrieve.

Edit

There is no such entity as StandardObject. Customizations to standard objects are retrieved with the CustomObject entity, but you must specify each one individually by name. The wildcard * is not supported for retrieval of standard object customizations.

For example:

<types>
     <members>*</members>
     <members>Account</members>
     <members>Opportunity</members>
     <name>CustomObject</name>
</types>
4
  • 1
    Thank you, David. I will try and report back
    – mike
    Commented Oct 15, 2019 at 16:11
  • 1
    Hi David, I tried multiple things but nothing seems to working .. would you know why?
    – mike
    Commented Oct 30, 2019 at 18:08
  • 1
    @mike You'd need to edit your post with all of the details of what you're doing.
    – David Reed
    Commented Oct 30, 2019 at 18:29
  • 1
    Thanks David. That worked!. I think the problem was that I was not saving after making changes.
    – mike
    Commented Nov 6, 2019 at 19:08

You must log in to answer this question.

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