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

Announcements

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 485

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,096 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
    485 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,096 on at
  • Suggested answer
    YUN ZHU Profile Picture
    102,476 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 702 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 481 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 328 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans