Explore Dynamics 365 Business Central on Microsoft LearnDiscover features, benefits, and examples of Dynamics 365 Business Central in action in this short training module.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
Hello there.I have created an export xmlport with AL for BC 365.I have defaulted the file name, smth like PO.csv.It works great as far as exporting data, however after it is done generating the file, I want to get this file that downloads in the Downloads folder, and place it in a directory on the server connected to my local workstation.I tried to use the download method but that did not work.
smth like this
DOWNLOAD(FromFile, DialogTitle, ToFolder, ToFilter, ToFile)
Someone suggested codeunit 419, but I can't figure out which function to use.
I want the xml port to run via the job queue, so the creating of the file and moving it on the server should happen without any user input or interaction. Any ideas ?
Yes, I figured out most of the code after I posted this, and I wrote in the other thread. I did not know how to delete this one. I still have a problem that I need help with. The file still gets saved my download folder. although I am specifying a path for it to go.
Is there a solution to that ?
Feel free to delete this one and answer on the the other thread.
Are you working on the SaaS platform (cloud)? If so, you cannot specify a network folder because the cloud doesn't know that.
I am working with BC365 on the cloud.
In the cloud, you cannot automatically save a file in a local folder. This is not supported (unless you set the compiler target to 'internal' for on-prem extensions).
What you can do is using a cloud storage provider and having a "shared folder" with an URL (for example, Onedrive).
I can one a OneDrive for this.
Any idea how to do that ? Is there specific code that is needed for One Drive access ?
I appreciate your help.
Nothing special to do, just create a folder and share it with your Office 365 (BC) users.
SO in the code below
I have the following
mypath := 'Send_PO.csv';
DOWNLOADFROMSTREAM(reportinstream, '', '\\Navision\cust\XXX\CSV\outbox\', '', mypath);
Do I change the path on the DOWNLOAFROMSTREAM pointing to the OneDrive share ?? It seems that the folder is not supported in DOWNLOADFROMSTREAM so I wanted to make sure I am using the correct line of code
Yes you can try this way if it works, but I'm not sure. I've to test :)
You can also try to exchange the files using Streams, TempBlob table and the BLOB fields in table 1220 Data Exch.
Thank you for your reply, but I really do not know how to use table 1220.
Is there any code out there that I can see and review ?
I ideally need to be able to put files via an xml or codeunit in a folder on the server or a shared One drive.
I did some research and I did not find any documentation on it.
Any info from anyone in this group would be very beneficial.
I have similar case but where I would like to access the xml file saved in project folder and the then input it to the xmlport.import?
Using UploadFromStream() is not working it is opening a file opening dialog window but not pointing to xml file saved in my project folder.
Is it possible make it work somehow ?
Thanks in Advance.
Business Applications communities