salesforce-marketingcloud / FuelSDK-CSharp

FuelSDK-CSharp
MIT License
51 stars 79 forks source link

Results from new ETDataExtensionRow().Get() don't return "ObjectID" #64

Open chris-towles opened 5 years ago

chris-towles commented 5 years ago

We're using the FuelSDK-CSharp SDK version 1.0.0 and trying to add or update a row to a Data Extension. In order to do that the ObjectID field is required, however, it always returns null or throws an error if the field is specified to return.

The simplest way to demonstrate this is to query an ETDataExtensionRow without props supplied will throw the ObjectID error.

                var query = new ETDataExtensionRow
                {
                    AuthStub = this.client,
                    DataExtensionCustomerKey = dataExtension.CustomerKey,
                };

                var result = query.Get()

This will throw the following error

The Request Property(s) ObjectID do not match with the fields of 
DataExtensionObject retrieve 
solkararif commented 5 years ago

You have pass the columns that you need to retrive with the fuel sdk using props
var query = new ETDataExtensionRow { AuthStub = this.client, DataExtensionCustomerKey = dataExtension.CustomerKey, Props = new string[]{Column1,Clolumn2}, };