ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 3 replies, has 2 voices, and was last updated by  hungpv.dev 1 year, 5 months ago.

  • Creator
    Topic
  • #18302

    hungpv.dev
    Participant

    Hi,

    I ‘m unable to search email with special characters through advanced search api
    Query:

    This query return only one contact.

    But some email like this

    return not exactly email i want. (There is only one contact use this email)
    Screenshot use Postman

    I tried to run this code in laravel.
    I tried to use url encode $email only, $query, $endpoint. The result always is 404 not found.

    Question:
    How to convert email to some form that is search more accurately?
    There is anything i need to change my php code to make this function work like postman?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #18303

    hungpv.dev
    Participant

    There is another question.

    Many country in Asia doesn’t required state field for address. How to by pass this validate this?

    Sample request data:

    I tried many solution:

    Comment isRegionValid callback in vendor/oro/crm/src/OroCRM/Bundle/ContactBundle/Resources/config/validation.yml
    Fake state: “contact[addresses][0][state]”: “”,
    Event try US state:
    “contact[addresses][0][country]”: “US”, //ISO-2 Format
    “contact[addresses][0][state]”: “AL”, //Alabama

    #18324
    Artem Liubeznyi
    Artem Liubeznyi
    Oro Core

    State (region) field is optional for addresses since 1.8 release. What version are you on?

    #18331

    hungpv.dev
    Participant

    Hi Artem,

    I’m using oro 1.8.2

    P/s: I need to remove address validation in rest api call. I’m using cronjob to sync contacts with orocrm.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.