Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

CSV Buffer. Use more than 250 characters

Posted on by 566

Hi, I need to create a blob to upload info to an external app.

I am using CSV Buffer to create base data to upload which is pretty simple and cool.

Now I am facing a problem that CSVBuffer table "Value" field has a maximum lenght of 250 chars. 

This works fine for most of the fields I need, but I am willing to create a very large field (to store a json stream) and this 250 chars limit makes it impossible.

I am thinking in extending table CSV Buffer with a "VALUE2" field up to 2048 chars (I think this is the limit) but I am not sure this will work and I am not sure how to mod CSVBuffer functions in order to deal with this new fields.

XMLPORT is not an option (too many and variable fields in structure I need to upload). 

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: CSV Buffer. Use more than 250 characters

    I've clearly misunderstood. If you want to export as a blob then check this: docs.microsoft.com/.../export-function--blob-

    Older code style but the principles may remain: www.olofsimren.com/.../

  • AntonioTorre Profile Picture
    AntonioTorre 566 on at
    RE: CSV Buffer. Use more than 250 characters

    Thanks Josh thats a nice approach, but I need to use a Blob type field to store very large data (a json file which can have 3 or 4 thousands chars. I am not sure how move that data in the blob field to a csv file

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: CSV Buffer. Use more than 250 characters

    Do you have to use that exact table? Can't you create your own based on that table? If you take a copy of the base app you can just number it in the custom range and add the extra fields you need.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans