OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform Api advance search email with special characters

This topic contains 3 replies, has 2 voices, and was last updated by  hungpv.dev 7 years, 10 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #36961

    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
  • #36962

    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

    #36963

    Artem Liubeznyi
    Spectator

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

    #36964

    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)

The forum ‘OroPlatform’ is closed to new topics and replies.

Back to top