web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

storing json text in multiple fields in crm

(0) ShareShare
ReportReport
Posted on by

Hello guys,
I have a Multiple lines of text field in CRM which is used to store JSON from an API call. This field is set to its maximum length. The issue is sometimes the json is too big and am thrown a validation error that the length of json exceeds the maximum length of the field.
How can I solve this issue? I cannot cut down on the properties the json is storing. I was thinking of adding another field to store the extra characters of the json in that field. But am thrown a " fail to serialize object".

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Jeet Gandhi Profile Picture
    320 on at

    Hi Donald,

    The maximum length of the multi line text field in CRM can be 1,048,576 characters for any entity. We can not override this constraint in any manner OOB.

    As per your issue is concerned, I suggest you to use a Text file as an attachment in the entity "Notes" to store the JSON response from the API call.

    Hope above information resolves your issue.

    Please mark the answer if you feel helpful.

  • Community Member Profile Picture
    on at

    Hi Jeet,

    thanks for the response. Can you think of any other solution other than attaching it to notes?

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    How big is your json response? I would think 1M characters is more than enough.

    Is CRM, the proper place to store this if you have larger JSON string?

  • Community Member Profile Picture
    on at

    very valid question Aric :) Thing is, its never exceeded the maximum length of the field. However, I brought up this issue(that it is possible to exceed the maximum length) to my team and they want me to find a solution...

  • Guido Preite Profile Picture
    54,086 Moderator on at

    happened or not that you exceeded the maximum length or not? in your initial post you wrote that happened and in your last post that never happened

    because I really doubt that a JSON response of an API call is bigger than 1MB.

  • ashlega Profile Picture
    34,477 on at

    Maybe we need to see some screenshots/numbers:

    - What's the current length of that field?

    - What's the actual length of that json?

    If you really do have a problem with 1 MB (which I agree looks suspicious), createa another field, you'll have 2 MB.. Would it be enough?

    Just don't forget that you need to concatenate those fields to get your actual json.. and you need to split before storing it in those fields..

  • Community Member Profile Picture
    on at

    Hey guys,

    Thank you all for the responses. I ended up using Jeet's idea to implement. I added a validation to check if the JSON is more than the maximum length of the field. If it is, I am storing the JSON as an attachment in the notes section.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans