Skip to main content

Notifications

Announcements

No record found.

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/);
 
 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,673 Super User 2024 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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans