Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

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

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/);
 
 
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,757 Super User 2024 Season 2 on at
    Business Central 22 On-Prem - How to select a folder path, not a file

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,349 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,212 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans