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

support contains operator #44

Open
adamgreenhall opened this issue May 28, 2015 · 2 comments
Open

support contains operator #44

adamgreenhall opened this issue May 28, 2015 · 2 comments

Comments

@adamgreenhall
Copy link

In the schema, contains appears to be a valid SimpleOperator:
https://github.com/ExactTarget/FuelSDK-Python/blob/855ca7d31788004c67dcc20b7ed9e951d707c008/FuelSDK/ExactTargetWSDL.xml#L490-L515

but the code:

import FuelSDK
client = FuelSDK.ET_Client(
    params=dict(clientid=CLIENT_ID, clientsecret=CLIENT_SECRET)
    )
event = FuelSDK.ET_Email()
event.auth_stub = client
event.search_filter = {'Property': 'name', 'SimpleOperator': 'contains', 'Value': 'test'}
response = event.get()
print response.message

results in

Error: "contains" is not a valid SimpleOperator for a retrieve Filter.
@Jetski5822
Copy link

Jetski5822 commented Apr 27, 2016

Same issue with most of those to be fair. Same problem in the CSharp Client.

@emailrhoads
Copy link

Long time... but for the curious

For me using 'like' as the operator fixed it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants