---
schema_version: "1"
id: 7c3914e0016c40c6c7a949eff3cd7f9bd5c8945cb24becfeacb52b501faa0ec3
title: DescribeMetadataResult
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_describemeta_result.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_describemeta_result.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 95fc0d5907be035f01b1d7659e8375ee1759b31fd6688eb9790fc2a615780c62
description: Contains information about the organization that is useful for developers working with declarative metadata.
---
# DescribeMetadataResult

Contains information about the organization that is useful for developers working with declarative metadata.

The [describeMetadata()](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_describe.htm "This call retrieves the metadata that describes your organization. This information includes Apex classes and triggers, custom objects, custom fields on standard objects, tab sets that define an app, and many other metadata types.") call returns a DescribeMetadataResult object.

Each DescribeMetadataResult object has the following properties:

## Fields

### metadataObjects

- **Type**: [DescribeMetadataObject](#describemetadataobject)\[\]
- **Description**: One or more metadata components and their attributes.

### organizationNamespace

- **Type**: string
- **Description**: The namespace of the organization. Specify only for Developer Edition organizations that can contain a managed package. The managed package has a namespace specified when it is created.

### partialSaveAllowed

- **Type**: boolean
- **Description**: Indicates whether [rollbackOnError](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy.htm#meta_deploy "Uses file representations of components to create, update, or delete those components in a Salesforce org.") is allowed (true) or not (false). This value is always :
    - false in production organizations.
    - the opposite of testRequired.

### testRequired

- **Type**: boolean
- **Description**: Indicates whether tests are required (true) or not (false). This value is always the opposite of partialSaveAllowed.

## DescribeMetadataObject

This object is returned as part of the DescribeMetadataResult. Each DescribeMetadataObject has the following properties:

### childXmlNames

- **Type**: string\[\]
- **Description**: List of child sub-components for this component.

### directoryName

- **Type**: string
- **Description**: The name of the directory in the .zip file that contains this component.

### inFolder

- **Type**: boolean
- **Description**: Indicates whether the component is in a folder (true) or not (false). For example, documents, email templates and reports are stored in folders.

### metaFile

- **Type**: boolean
- **Description**: Indicates whether the component requires an accompanying metadata file. For example, documents, classes, and s-controls are components that require an additional metadata file.

### suffix

- **Type**: string
- **Description**: The file suffix for this component.

### xmlName

- **Type**: string
- **Description**: The name of the root element in the metadata file for this component. This name also appears in the Packages > types > name field in the manifest file package.xml.