Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - need to escape query criteria #8

Open
niciliketo opened this issue Jan 28, 2020 · 0 comments
Open

Bug - need to escape query criteria #8

niciliketo opened this issue Jan 28, 2020 · 0 comments

Comments

@niciliketo
Copy link

According to this issue
https://help.zoho.com/portal/community/topic/zoho-crm-api-v2-invalid-query-formed-error
It is necessary to escape special characters in the query (e.g. brackets).

I feel that this should be done at the API level
Here is some code that fails

    module_instance =
      ZCRMSDK::Operations::ZCRMModule.get_instance('accounts')
    crm_data =
        criteria = "(Account_Name:equals:Acme (Co.))"
        api_res = module_instance.search_records_by_criteria(criteria)
        api_res.data[0]
      end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant