zoho / zcrm-ruby-sdk

MIT License
0 stars 8 forks source link

Bug - need to escape query criteria #8

Open niciliketo opened 4 years ago

niciliketo commented 4 years ago

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