Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.91 KB

File metadata and controls

50 lines (33 loc) · 1.91 KB
title description ms.date author ms.author ms.reviewer ms.topic search.audienceType contributors
Sample: Dump column definitions to a file (Microsoft Dataverse) | Microsoft Docs
This sample showcases how to dump column definitions to a file.
04/03/2022
mkannapiran
kamanick
jdaly
sample
developer
JimDaly
phecke

Sample: Dump column definitions information to a file

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

[!div class="nextstepaction"] SDK for .NET: Dump column definitions information to a file sample code

The following sample creates a new file at \DumpAttributeInfo\bin\Debug\AllAttributeDesc.xml. You can open this file in Office Excel to see a tabular report.

How to run this sample

[!includecc-how-to-run-samples]

What this sample does

The RetrieveAllEntitiesRequest message is intended to be used in a scenario that contains data that is needed to retrieve metadata information about all the tables.

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 metadata.
  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.

[!INCLUDEfooter-include]