Announcement

Collapse
No announcement yet.

API behaving differently on the new 7.0.X release

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • API behaving differently on the new 7.0.X release

    Hi everyone,

    We have updated our test site to the 7.0.7 Espo version, and we have lost the API requests we used to make from another site we have. In our system we have applications related to contacts, and in the following example we made a request using the API to list the applicationsContactIds related to a contact:

    -On the test site using 7.0.7 this request that was working before won't return the desired applicationsContactIds list:

    http://XXX.XX/espo/api/v1/Contact?where[0][type]=equals&where[0][attribute]=id&where[0][value]=XXXXXXXXXX&select=id,name,applicationsContactIds

    see attachment 1.

    -Using the same request on the production site, that still runs the 6.1.9 Espo version, the request returns the desired list:

    https://XXXX.XX/espo/api/v1/Contact?where[0][type]=equals&where[0][attribute]=id&where[0][value]=XXXXXXXXX&select=id,name,applicationsContactIds

    see attachment 2.

    -Nevertheless, on the same test site using 7.0.7 version, by adding another field requested, that being the applicationContactNames, it returns correctly both lists:

    http://XXX.XX/espo/api/v1/Contact?where[0][type]=equals&where[0][attribute]=id&where[0][value]=XXXXXXXXX&select=id,name,applicationsContactIds,a pplicationsContactNames

    seee attachment 3.

    This is troubling for us, as we would need to change all the calls from the external site to the CRM, or never go beyond 6.1.9 which after seeing the great work you are doing, it's not really an option.

    I hope my troubles are clear, and that you can help me find a solution to this.

    PD: Right now we made a rollback to 6.1.9 to keep working, so I won't be able to make too many tests, but if needed I can schedule a day to stop developping to try any suggestions made.

    Thank you very much!

  • #2
    Could not reproduce. I will try more scenarios.

    Comment


    • abisbe
      abisbe commented
      Editing a comment
      Thank you, Yuri. Please let me know if I can do something to help you.

    • esforim
      esforim commented
      Editing a comment
      Look like you can do a quick manual patch for this abisbe, just see post #3

  • #3
    Fix: https://github.com/espocrm/espocrm/c...75e38842b6e5c5

    Comment


    • abisbe
      abisbe commented
      Editing a comment
      thank you! Will try this tomorrow and let you know!

  • #4
    Sorry for the late reply, the fix worked like a charm! Thanks!

    Comment

    Working...
    X