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

[BUG] Data extension row creation fails when just Name is provided

Open vijayprakashpj opened this issue 5 years ago • 0 comments

Describe the bug The creation of data extension row fails when only Name attribute value is provided in the request payload as the underlying logic in self.getCustomerKey() method to describe and determine the CustomerKey's filter condition is incorrectly matching the Name attribute value with CustomerKey field of data extensions.

To Reproduce Initialize an ET_DataExtension_Row() object with the following attributes:

  • Name
  • props Then fire post() call.

Expected behavior Name attribute value must be compared with the data extension name field instead of CustomerKey field.

Screenshots image

Code snippet

auto_suppression_entry = ET_DataExtension_Row()
auto_suppression_entry.auth_stub = client
# auto_suppression_entry.Name = "My Auto Suppression List"
auto_suppression_entry.CustomerKey = "00000000-0000-0000-0000-000000000000"
auto_suppression_entry.props = {
    "Email Address": "[email protected]"
}
results = auto_suppression_entry.post()

Environment

  • SDK version - 1.3.0
  • Python version - 3.7.4

The bug has the severity

  • Minor: The defect affects minor functionality or non-critical data. It has an easy workaround.

vijayprakashpj avatar Feb 18 '20 09:02 vijayprakashpj