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...
Suggested Answer

Common Dialog Management CU in Business Central

(4) ShareShare
ReportReport
Posted on by 8
Hello Dear Community,
 
I am newbie in AL on BC. I converted my Codeunits in Dynamics NAV to Business Central. Some system codeunits and functions are missing. Is there anything Codeunit instead of Common Dialog Management ? Or do we have to delete all codes of these and have to find another solutions ?
 
Thanks for your support and guidance.
 
 
 
If this will be solved, I have a question about File Record. There is a File record in BC but it gives an error. 
 
Thanks for your supports.
I have the same question (0)
  • Suggested answer
    Yash_Mistry Profile Picture
    527 on at
    If you want to enable file Upload you can use  below code in your AL:

    UploadIntoStream('Select File', '', '', FileName, InStream)

    Hope this helps.

    Regards,
    Yash Mistry

     
  • Suggested answer
    YUN ZHU Profile Picture
    102,123 Super User 2026 Season 1 on at
  • Suggested answer
    Aman Kakkar Profile Picture
    3,597 Super User 2026 Season 1 on at

    Hi,

    I don’t believe the codeunit Common Dialog Management is available in modern Business Central AL, especially in SaaS environments. In Business Central, the recommended approach is to use functions such as UploadIntoStream and DownloadFromStream for file upload and download operations. 

    For example:
    • Use UploadIntoStream to let users upload a file into a stream

    • Use DownloadFromStream to allow downloading files

    Regarding your second question about the File record, there is no standard table/record named File in Business Central that can be used like in older NAV versions. However, AL does provide a File data type, which is used for file handling in certain scenarios (mainly OnPrem).

     
     

    Could you please confirm whether you are referring to the File data type or a custom/legacy record from NAV?

    Do mark it as verified if this helps.

    Aman K

  • Suggested answer
    OussamaSabbouh Profile Picture
    17,906 Super User 2026 Season 1 on at
    Hello,
    There’s no real 1:1 replacement for Common Dialog Management in modern BC AL extensions; when moving from NAV, you usually need to replace old file/dialog logic with stream-based handling like UploadIntoStream and DownloadFromStream. The File record/object error is also expected because those APIs are OnPrem and not allowed in standard Extension development, so the fix is usually to stop using direct file system access and redesign around InStream/OutStream, Temp Blob, and upload/download methods instead.
    Regards,
    Oussama Sabbouh
  • Gerardo Rentería García Profile Picture
    27,310 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    How to upload and download files to and from Dynamics 365 BC

    Best Regards
    Gerardo

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,556 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,028 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 877 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans