diff --git a/FuelSDK/objects.py b/FuelSDK/objects.py index 0b5eebb..0744b51 100644 --- a/FuelSDK/objects.py +++ b/FuelSDK/objects.py @@ -382,7 +382,7 @@ def getCustomerKey(self): de = ET_DataExtension() de.auth_stub = self.auth_stub de.props = ["Name","CustomerKey"] - de.search_filter = {'Property' : 'CustomerKey','SimpleOperator' : 'equals','Value' : self.Name} + de.search_filter = {'Property' : 'Name','SimpleOperator' : 'equals','Value' : self.Name} getResponse = de.get() if getResponse.status and len(getResponse.results) == 1 and 'CustomerKey' in getResponse.results[0]: self.CustomerKey = getResponse.results[0]['CustomerKey']