Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Cannot create a new Data Extension when importing data #86

Open
BostjanOrter opened this issue Jul 14, 2020 · 0 comments
Open

Cannot create a new Data Extension when importing data #86

BostjanOrter opened this issue Jul 14, 2020 · 0 comments
Labels

Comments

@BostjanOrter
Copy link

BostjanOrter commented Jul 14, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant