Skip to content

Bug - need to escape query criteria #8

@niciliketo

Description

@niciliketo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions