web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Open XML files from a http folder in Dynamics Ax 2009

(0) ShareShare
ReportReport
Posted on by

How do I copy a file from an URL to a tmp folder using X++ in Dynamics Ax 2009?

Details:

I have a Sharepoint site with a document folder of XML documents. I have the URL to a specific file, and I need to parse the contents of the XML file.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Obviously Windows File Explorer is not prepared for copying content over http protocol, that is why we need browsers. It involves authentication with the website, and downloading the file via the http protocol.

    One solution could be to write a wrapper in C#, and then use that as a .Net Reference in AX, which you may call from X++.

    Here is an example:

    stackoverflow.com/.../how-to-download-upload-files-from-to-sharepoint-2013-using-csom

    The alternative solution would be to add the SharePoint installation's DLLs to your AX .Net References library, and write the logic in X++ directly using that Microsoft.SharePoint.Client.File.OpenBinaryDirect call.

  • Verified answer
    Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at

    Also note that it's possible to use WebDAV map SharePoint libraries to network drives and then use the usual tools for files. I used it in past.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans