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 :
Finance | Project Operations, Human Resources, ...
Answered

Upload file from D365 F&O to network shared location folder (same domain)

(1) ShareShare
ReportReport
Posted on by 136
Hi experts,
 
I am working on one file based integration where I need to generate file using X++ and upload the file on same domain network location.
Need your suggestion what are the different options available to upload file from F&O to network shared location folder.
 
Note: D365 F&O and shared folder both are on the same domain.
 
Thanks.
I have the same question (0)
  • Sohaib Cheema Profile Picture
    48,117 User Group Leader on at
    Upload file from D365 F&O to network shared location folder (same domain)
    Before you think about coding, I would suggest analysis on what each solution could cost you.  What type of file you will be generating. What would this file contain? What will be the purpose to send this file to local network? and what will be frequency of this file generation? 
    The solution may change, based on those considerations. 
    Once you have final solution selected, you can move for coding.  Having such questions answered can also help no-code/low-code solution.
  • Vinay S Profile Picture
    136 on at
    Upload file from D365 F&O to network shared location folder (same domain)
     
    Many thanks Sohaib for your valuable suggestion.
     
    Can you please help me to share the code/setup for the following your suggested solutions.
    I want your suggestion to implement from where and how I will start 
     
    1. Using SFTP
    2. Azure File Share The on-premises agent(Azure File Sync agent.) 
    3. If this is possible using DMF API
     
    Thanks in advance.
  • Verified answer
    Sohaib Cheema Profile Picture
    48,117 User Group Leader on at
    Upload file from D365 F&O to network shared location folder (same domain)
    Dynamics 365 F&O cloud version does not runs on your domain/network. It runs on the Microsoft infra (SAAS) and that is why every D365FO system link/address ends with operations.dynamics.com
     
    If you are asking for saving the document on the domain where Dynamics is hosted, you already kind of do that, when you save an attachment, in Dynamics, it already goes to a Storage Account which is hosted on the Microsoft owned Domain/Network(operations.dynamics.com)
     
    I believe, you want to save a document from Dynamics to your/office domain/network which is not operations.dynamics.com?
    If my assumption is correct you can do this in many ways.
    1) Your X++ code in D365 F&O could upload the generated file to the Azure File Share The on-premises agent(Azure File Sync agent.) would monitor the Azure File Share for new files and, upon detection, move or copy the file to your desired network shared folder.
    2) another solution could be using on-prem On-Premises Data Gateway using Power Automate.
    3) some SFTP clients can also do this, you can connect them to the Azure Blob storage (the place where Dynamics would drop your file)
    4) another solution could be uploading your file to OneDrive for business(using C#) and OneDrive for business can auto-synch the files to any servers of your local network (wherever you install it), X++/Dynamics can call the C# 
     
  • Vinay S Profile Picture
    136 on at
    Upload file from D365 F&O to network shared location folder (same domain)
    Hi,
     
    I am using D365 F&O cloud version
  • Sohaib Cheema Profile Picture
    48,117 User Group Leader on at
    Upload file from D365 F&O to network shared location folder (same domain)
    Are you dealing with on-prem F&O or is it cloud version for this question?

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 886 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 870 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 697

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans