FuelSDK-CSharp
FuelSDK-CSharp copied to clipboard
Cannot create a new Data Extension when importing data
Our use case: We would like to create a NEW Data Extension when importing data from a distribution file(.csv)
- In the Sample_Import.cs an existing Data Extension Id is used and assigned to the ETDataExtension.DestinationObject.
Bellow are the two approaches I've been trying with no success
Approach 1: Create a new DE (Sample_CreateDataExtensions.cs ) and use the response Id during the import (Sample_Import.cs) Issue: I'm not getting any Id back, i'm I missing something?
Approach 2: Using a new object ETDataExtension within the object ETImportDefinition:
ETDataExtension de = CreateNewDataExtension(); //instantiating ETDataExtension and setting the columns (ETDataExtensionColumn)
var import = new ETImportDefinition
{
...
DestinationObject = de,
Issue: cannot make it working: "The type FuelSDK.ETDataExtensionColumn was not expected"
Questions:
- Does Fuel SDK supports our use case?
- If yes, should we use approach 1 or 2 or any other
Thanks so much