Skip to main content

Notifications

Announcements

No record found.

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

How to save a file to a shared folder on the network Business Central

(0) ShareShare
ReportReport
Posted on by 115

Hello experts, first of all thank you very much for taking the time to read my question.

the issue is the following, create the following development in business central V17 on-Premise and it looks something like this:

pastedimage1676487884543v1.png

Which is responsible for generating a TXT file and generates it in a folder that I have created in "C:\Payments\" on my computer where Business Central is installed and the development works correctly, it generates something like this:

pastedimage1676488341619v3.png

My problem comes from the fact that they have told me that they require the file to be saved in a shared folder with the PC, which is a shared folder on the network and I don't know how to indicate the address in the code so that the document is saved there.

pastedimage1676489106748v4.png    

Thank you again for your time and I await any comments

  • Yael Suarez Profile Picture
    Yael Suarez 115 on at
    RE: How to save a file to a shared folder on the network Business Central

    Hi not Yet :(

  • Haris Korac Profile Picture
    Haris Korac 119 on at
    RE: How to save a file to a shared folder on the network Business Central
    [quote user="Yael Suarez"]

    Hello experts, first of all thank you very much for taking the time to read my question.

    the issue is the following, create the following development in business central V17 on-Premise and it looks something like this:

    pastedimage1676487884543v1.png

    Which is responsible for generating a TXT file and generates it in a folder that I have created in "C:\Payments\" on my computer where Business Central is installed and the development works correctly, it generates something like this:

    pastedimage1676488341619v3.png

    My problem comes from the fact that they have told me that they require the file to be saved in a shared folder with the PC, which is a shared folder on the network and I don't know how to indicate the address in the code so that the document is saved there.

    pastedimage1676489106748v4.png    

    Thank you again for your time and I await any comments

    [/quote]

    Hello, do you success to solve this problem? :)

  • Yael Suarez Profile Picture
    Yael Suarez 115 on at
    RE: How to save a file to a shared folder on the network Business Central

    Hello, how are you? Thank you very much for taking the time to answer my question.

    Hello, how are you? Thank you very much for taking the time to answer my question.

    To enter the shared folder I press CTRL + R and I write the following and if it opens the shared network drive and it looks as follows:

    pastedimage1676585879040v1.png

    I have tried modifying the code as follows:

    pastedimage1676586053007v3.png

    And I really don't know what other path to put in the code to indicate that it is that folder

    What options would you recommend?

    Thanks again for your time

    greetings

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to save a file to a shared folder on the network Business Central

    Hi,

    You can try to replace your C drive path with the Network path you mentioned, did it work? but you should permission to read and write to this path.

    Thanks.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 Super User 2024 Season 2 on at
    RE: How to save a file to a shared folder on the network Business Central

    Hi, In general, as long as you have access to that server, you can access it directly using the address you opened on windows.

    The following are discussion of writing and reading.

    https://forum.mibuso.com/discussion/72477/saveaspdf-on-network-drive

    https://forum.mibuso.com/discussion/69651/nav2016-nas-copy-read-file-from-network-drive

    Hope this can give you some hints.

    Thanks.

    ZHU

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans