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

Notifications

Announcements

No record found.

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,062 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,062 on at
  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans