Stop API from truncating data in Text field type when the text is too very long?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dodom2
    Senior Member
    • Jan 2020
    • 198

    Stop API from truncating data in Text field type when the text is too very long?

    How can we avoid REST API to truncate data in Text field type when the text is too very long?

    When I read the record via the CRM then no problem. The full text of 12.620 length is displayed.
    But when I access the same record via the API, the field content is truncated to 5.000 characters only instead of 12.620.
    How can I change this behaviour please? Is there any setting to update?

    Thank you in advance.
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Option 1. Fetch each record separately. So you fetch ids with the first (find) request, then do read requests for each record.


    Option 2. Set in the config file:

    Code:
    'maxSelectTextAttributeLengthForList' => some big integer,
    Last edited by yuri; 04-14-2022, 08:37 PM.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...