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 :
Small and medium business | Business Central, N...
Answered

How to get the text written in Blob field?

(1) ShareShare
ReportReport
Posted on by 481

There is a Blob field on the Sales Invoice page called 'Work Description'. I am trying to print the text written in that field and also add it as a column/field on a report. How would I go about doing this?

I have the same question (0)
  • Suggested answer
    Vaishnavi J Profile Picture
    3,094 on at

    Hi,

    Added a field in your report create a variable as well.

    WorkDescription: Text;

    column(WorkDescription;GetWorkDescription ())

    {

    }

    procedure GetWorkDescription ()WorkDescription: Text

    var

       InStreamL: InStream;

      SalesHeader: Record Sales Header;

    begin

       Clear(WorkDescription);

       SalesHeader.Calcfields(SalesHeader."Work Description");

       If SalesHeader."Work Description".HasValue() then begin

           SalesHeader."Work Description".CreateInStream(InStreamL);

           InStreamL.Read(WorkDescription);

       end;

    end;

    Also you can refer the below link for more information.

    docs.microsoft.com/.../devenv-write-read-methods-line-break-behavior

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much

  • jdrco Profile Picture
    481 on at

    Hi VaishnaviJoshi , are there any good docs where I can research more about blobs in BC?

  • Suggested answer
    Vaishnavi J Profile Picture
    3,094 on at
  • Suggested answer
    YUN ZHU Profile Picture
    99,084 Super User 2026 Season 1 on at

    Hi, Vaishnavi's code is completely correct.

    In fact, you can also refer to the practice of standard reports.

    For example, 

    report 1305 "Standard Sales - Order Conf."
    pastedimage1656288039098v1.png
    pastedimage1656288060711v2.png
    Hope this helps as well.
    Thanks.
    ZHU

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,005 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans