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.

If you select an Enterprise WSDL, you need not perform the Get Metadata operation to get Salesforce metadata. The Enterprise WSDL contains Salesforce metadata. However, for bulk operations and composite API operations, Get Metadata prompts to get the Salesforce Bulk API and Salesforce Composite API metadata to use the bulk activities and composite activities.

Procedure

  1. In the Project Explorer view, right-click the application module and select BW Salesforce Tools > Get Metadata.
  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.

Result

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 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 the 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 operation of getting the metadata.
  • The sforce_partner.xsd schema stores some public data properties.
  • The composite.xsd schema is used to fetch metadata for the Composite Batch activity.
  • The composite_dep.xsd schema is used to fetch metadata for the Composite Dependent activity.