The Org Browser displays the available metadata types and their corresponding components in your default org. This feature makes it easier to retrieve metadata source, without having to use a manifest file. The Org Browser is available only in non source-tracked orgs such as sandboxes or Developer Edition orgs.
Opening the Org Browser
- Open Org Browser
- Refresh available metadata types in the org
- Default org
- Metadata type
- Metadata component
- Refresh components for metadata type
- Retrieve source for metadata component
- Retrieve source for all components of metadata type
- Retrieve source for metadata component and open it in VS Code
To open the Org Browser, click the cloud icon in the Activity Bar of the VS Code window (1). If you don’t see the icon, make sure your default org is set to a non source-tracked org.
When you open the Org Browser, all the metadata for the default org is saved in your local project under the
.sfdx directory to minimize the number of calls to the org.
Listing and Refreshing Metadata
The Org Browser lists all the metadata types (4) in your default org. To view the components (5), expand the metadata type. When you expand metadata types with folders such as Reports, Dashboards, Documents, and EmailTemplates, all the available folders are displayed. You can view the components in a folder by expanding it. Expand the
Custom Object metadata type to view fields and their type information. Additional information is displayed for following field types:
- strings: string(length)
- textareas: textarea(length)
- emails: email(length)
- lookups: lookup(reference)
You can refresh metadata at org level, for a type, for folders in a type, and for components in a folder. Click refresh icon next to:
- Org Browser (2) to refresh available metadata types in the org
- Metadata type (6) to get an updated list of components for the type
- Folder metadata type to update the folders in the type, but not the components in the folder
- Folder in a metadata type to refresh the components in it
You can retrieve a single metadata component or all components of the same type. Click retrieve icon next to:
- Component name (7) to retrieve a component to your local project
- Metadata type (8) to retrieve all components of the type
You can retrieve all folders of folder metadata types such as Reports, Dashboards, Documents, and EmailTemplates, by clicking on the retrieve icon next to the metadata type. When you retrieve a folder, only information about the folder is retrieved and added to a
<folder>-meta.xml file. To retrieve components within folders, view the components in a folder by expanding it and then retrieve the individual component by clicking the retrieve icon.
Currently, the source is retrieved into your default package directory as defined in the
You can also retrieve multiple components from the default org by clicking the retrieve button next to the metadata type. If retrieving a component overwrites it, you’re prompted to select how to proceed.
When you retrieve components for a metadata type, the Org Browser automatically refreshes the component list for the selected type and then retrieves them. This action ensures that the extensions accurately check the local workspace for existing components.
Note: Because of the asynchronous nature of the Metadata API calls, a simultaneous deploy and retrieve could potentially lead to a race condition. To prevent retrieving unexpected components, be mindful of using the Org Browser while a deploy operation is in progress.