Skip to main content

Notifications

Announcements

No record found.

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

How to get path in business central

Posted on by 382

Hello everyone,

I want to ask that how can I get the path of a specific blob field that contains an image or a document? Like in report inbox page there is a field "Report Output" i.e. a blob and contains pdf doc. I want to get the path of the file and download it. Kindly help. Thank you.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,696 Super User 2024 Season 2 on at
    RE: How to get path in business central

    Hi, in principle, we cannot see the path of these files. But the following functionality was recently released in Power Automate, although I don't think we can get it from AL, but hopefully it gives you some hints.

    https://yzhums.com/33436/

    pastedimage1677818493117v1.png

    In addition, if you want to get the file name when importing, you can use the following method.

    pastedimage1677818556559v2.png

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: How to get path in business central

    To be able to download from a blob you have to read the data from the blob into a stream first.

    You can refer to this documentation for an example on how to do that in AL.

    learn.microsoft.com/.../file-downloadfromstream-method

  • Suggested answer
    Bilal Haider Profile Picture
    Bilal Haider 45 on at
    RE: How to get path in business central

    Hi Anas,

    I do not fully understand your query.

    Blob field stores data in db table not to a file.

    In report inbox when you select a specific record and click download, it will download the file from blob to your browsers downloads folder.

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans