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

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

Open
vijayprakashpj opened this issue Feb 18, 2020 · 0 comments
Open
Labels

Comments

@vijayprakashpj
Copy link

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 pushed a commit to vijayprakashpj/FuelSDK-Python that referenced this issue Feb 18, 2020
Bug salesforce-marketingcloud#119 - Logic to get customer key of the data extension based on its name fails due to incorrect comparison logic
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