Skip to content

Latest commit

 

History

History
32 lines (16 loc) · 1.31 KB

File metadata and controls

32 lines (16 loc) · 1.31 KB

Dump table definitions to a file

This sample shows how to write out table definitions to an XML file. It uses the RetrieveAllEntitiesRequest message.

The following sample creates a new file at \DumpEntityMetadata\bin\Debug\EntityInfo.xml. You can open this file in Office Excel to see a tabular report. You may need this information to discover the entity type code for a custom table for use in reports.

How to run this sample

See How to run samples for information about how to run this sample.

What this sample does

The RetrieveAllEntitiesRequest message is intended to be used in a scenario that contains data that is needed to retrieve table definitions information.

How this sample works

In order to simulate the scenario described in What this sample does, the sample will do the following:

Setup

Checks for the current version of the org.

Demonstrate

  1. The RetrieveAllEntitiesRequest method retrieves the table definitions.
  2. The StreamWriter creates an instance of StreamWriter to write text to a file.

Clean up

This sample creates no records. No cleanup is required.