Getting Metadata

Salesforce Metadata resource describes the schema definition metadata for a given organization as a XML Schema Definition (XSD).

Prerequisites

Before getting metadata for your project, you must create a Salesforce connection, with which you can download and store metadata as an XSD resource in the TIBCO Business Studio project during design time. For more information about creating a Salesforce connection, see Create a Salesforce Connection.

Procedure

  1. In the Project Explorer view, right-click the application module and click BW Salesforce Tools > Get Metadata from the pop-up menu.
  2. Click browse next to the Salesforce Connection field to select one usable connection for the current activity.
  3. Click OK in the Select Salesforce Connection window.
  4. Click OK in the Get Salesforce Metadata window.
    The Salesforce_Metadata.xsd, AsyncAPI.xsd and sforce_partner.xsd schemas are displayed in the SalesforceResources folder of the application module in the Project Explorer view:
    • The Salesforce_Metadata.xsd schema is a metadata schema that comes from a specified database on the Salesforce.com server.
    • The Bulk API service is described by an XSD file. This XSD contains the schemas required for bulk operations. This file is downloaded and stored by default in AsyncAPI.xsd in SalesforceResources folder when you fetch the metadata using the Get Metadata tool. You can change the name of the file in which the schema is fetched during the Get Metadata operation.
    • The sforce_partner.xsd schema stores some public data properties.
    Note: When selecting an Enterprise WSDL for your project, you do not have to perform the Getting Metadata operation to get Salesforce metadata. The Enterprise WSDL contains Salesforce metadata. Although for bulk operations, Get Metadata prompts to get the Salesforce Bulk API metadata to use the bulk activities.