Skip to content

Commit 4d1985a

Browse files
committed
Merge pull request salesforce-marketingcloud#26 from analytehealth/master
adding AdditionalOperands capabilities to search filter
2 parents 1c34101 + 6b9ee78 commit 4d1985a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

FuelSDK/rest.py

+5
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ def __init__(self, auth_stub, obj_type, props = None, search_filter = None):
173173
ws_complexFilterPart.LeftOperand = ws_simpleFilterPartLeft
174174
ws_complexFilterPart.RightOperand = ws_simpleFilterPartRight
175175
ws_complexFilterPart.LogicalOperator = search_filter['LogicalOperator']
176+
for additional_operand in search_filter.get('AdditionalOperands', []):
177+
ws_simpleFilterPart = auth_stub.soap_client.factory.create('SimpleFilterPart')
178+
for k, v in additional_operand.items():
179+
ws_simpleFilterPart[k] = v
180+
ws_complexFilterPart.AdditionalOperands.Operand.append(ws_simpleFilterPart)
176181

177182
ws_retrieveRequest.Filter = ws_complexFilterPart
178183
else:

0 commit comments

Comments
 (0)