salesforce-marketingcloud / FuelSDK-Java

Salesforce Marketing Cloud Java SDK
BSD 3-Clause "New" or "Revised" License
72 stars 123 forks source link

Successfully execute update data extension row in SDK, but the row in SFMC is not updated. #124

Closed herrytank closed 3 years ago

herrytank commented 3 years ago

I'm trying to update a SFMC data extension row and I using FuelSDK to code like this:

TDataExtensionRow deRows = new ETDataExtensionRow();
deRows.setDataExtensionKey(etResponse.getObject().getKey());
deRows = formatDataExtensionRow(deRows,dynamicDeModel); // this method mainly to set the column name and value

if(dynamicDeModel.getDataRows().get("id")!=null){
     Srtring rowId = dynamicDeModel.getDataRows().get("id");
     deRows.setId(rowId);
}

ETResponse<ETDataExtensionRow> response = ETClientHelper.getClient().update(deRows);
                resultRow = response.getResult();

No error when I debugging the code and it works fine and reponse message looks good. I'm confused why it doesn't work. Can you guys see what I went wrong?