salesforce-marketingcloud / FuelSDK-Python

FuelSDK for python
Other
127 stars 193 forks source link

Using multiple search terms #88

Open f4f343w4tcfwv4tz5tb5 opened 6 years ago

f4f343w4tcfwv4tz5tb5 commented 6 years ago

I'm attempting to use a filter with left and right operands, but I get a KeyError: 'LeftOperand':

getFolder.search_filter = {'leftOperand': {'Property': 'Name', 'SimpleOperator': 'equal', 'Value': 'MyTestEmails'}, 'LogicalOperator': 'and', 'rightOperand': {'Property': 'ParentFolder', 'SimpleOperator' : 'equal', 'Value': 'my emails'}}

sharif26 commented 6 years ago

Please check our example code here Please try to follow the proper case while mentioning LeftOperand, RightOperand, AND Also spelling of equals instead of equal. Hope these should resolve your issue.