FuelSDK-CSharp icon indicating copy to clipboard operation
FuelSDK-CSharp copied to clipboard

Cannot create a new Data Extension when importing data

Open BostjanOrter opened this issue 3 years ago • 0 comments

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:

  1. Does Fuel SDK supports our use case?
  2. If yes, should we use approach 1 or 2 or any other

Thanks so much

BostjanOrter avatar Jul 14 '20 11:07 BostjanOrter