Announcement

Collapse
No announcement yet.

API doesn't get all fields after updating Espo

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

  • API doesn't get all fields after updating Espo

    Hello everybody,

    we've updated Espo from a customer and have some troubles with the API now.
    In the original version, if we choose "contact" oder "account" from a link field, we've got an API Get Statement like this:

    /api/v1/Account?maxSize=20&offset=0&sortBy=createdAt&asc=f alse

    or

    /api/v1/Contact?maxSize=20&offset=0&sortBy=createdAt&asc=f alse


    But now after the update, we've got an API Get Statement like this:

    /api/v1/Account?select=name%2CcustomCountry%2CaccountClien tType%2CassignedUserId%2CassignedUserName&maxSize= 20&offset=0&orderBy=createdAt&order=desc

    or

    /api/v1/Contact?select=salutationName%2CfirstName%2ClastNa me%2Cname%2CaccountId%2CaccountName%2CemailAddress IsOptedOut%2CemailAddress%2CemailAddressData%2Cass ignedUserId%2CassignedUserName&maxSize=20&offset=0 &orderBy=createdAt&order=desc


    How can we change this back to the old statement?


    Best, Daniel

  • #2
    You can just delete string select= till maxSize so from: /api/v1/Contact?select=salutationName%2CfirstName%2ClastNa me%2Cname%2CaccountId%2CaccountName%2CemailAddress IsOptedOut%2CemailAddress%2CemailAddressData%2Cass ignedUserId%2CassignedUserName&maxSize=20&offset=0 &orderBy=createdAt&order=desc

    short this to:
    /api/v1/Contact?maxSize=20&offset=0 &orderBy=createdAt&order=desc

    Comment


    • #3
      Yes, thats clear :-) But I need this hardcoded each time it's called. Do you know in which file I can found this? I've searched for it but I can't find it...

      Comment


      • #4
        anyone?

        Comment

        Working...
        X