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 :
Business Central forum

Data Type to save html record in Business Central?

(0) ShareShare
ReportReport
Posted on by

Is it possible to save HTML content in Business Central table record?

I was using Text[2048] but the HTML content size exceeds this limit and does not save the record.

Categories:
  • Suggested answer
    I Gusti Made Ari Profile Picture
    3,608 on at
  • Community Member Profile Picture
    on at

    Thanks for your quick reply.

    Can you please write some code to define a blob field in a table?

    And how to use that WRITE function for blob field?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    You can read from and write to BLOBs by creating input and output streams, respectively. To do so, use CREATEINSTREAM Function (BLOB) and CREATEOUTSTREAM Function (BLOB).

    For more information, see InStream and OutStream Data Types here: docs.microsoft.com/.../instream-and-outstream-data-types

  • Community Member Profile Picture
    on at

    Thank you so much Stefano Demiliani. I Just implemented this solution and it worked for me.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans