The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Copy a Data Extension

This page contains information about using the SOAP API to copy an existing data extension.

You can use this code to create a data extension with the same fields and data types as an existing data extension. This process saves the time and effort necessary to manually create a data extension.

Use the provided sample code as a model for your own API call. Note that this code does not function correctly for data extensions created via a template. While the code creates a data extension with the appropriate fields, the new data extension does not function in the same context as the data extension created via a template (such as a triggered send data extension).