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

Community site session details

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

Business Central 22 On-Prem - How to select a folder path, not a file

(1) ShareShare
ReportReport
Posted on by 2
I am looking for a way to browse to and select a folder for a setup window on BC22 On-Prem.
 
The legacy code used dotnet System.Windows.Forms, but this is no longer an option in BC22 dev.
 
We are able to use the below code for selecting a specific file, but not able to select a folder (where file drops will be picked up from)
 
 
                        FileDialogSelection := FileMgt.UploadFile(Text001, /Definition Import Path/);
 
 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    94,262 Super User 2025 Season 2 on at
    Business Central 22 On-Prem - How to select a folder path, not a file

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,705

#2
Sumit Singh Profile Picture

Sumit Singh 2,015

#3
YUN ZHU Profile Picture

YUN ZHU 2,004 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans