Closed migu0 closed 8 years ago
Interesting. Lemme take a look into this.
Thx. The second line returns 0 results even though there are matches.
What if you do this?
client.list_leads('"custom.Multiple once off":false')
Bingo! Thanks!
Is there any way to make this work with string interpolation?
client.list_leads('"custom.Global ID":#{user.id}')
Will it work if you flip the quotes?
client.list_leads("'custom.Global ID':#{user.id}")
No =(
What if you change your custom field keys by "dasherize-ing" them? That way you wouldn't have to do this single/double quote dance...
client.list_leads("'custom.Global ID':#{user.id}") # vs.
client.list_leads("custom.Global-ID:#{user.id}")
That's definitely what I would recommend to someone setting up Close for the first time. We have quite a bit of code and reports where these custom fields are hard coded so I'd have to change that.
I found a way to make it work
backend.list_leads('"custom.Global ID":'+user.id.to_s)
Thanks for your help!
Hey Taylor,
We have custom fields with white spaces and I can't query by them.
Example:
I wonder whether this node wrapper had the same issue: https://github.com/closeio/closeio-node/issues/4?