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

Announcements

News and Announcements icon
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
    239,831 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 10

#2
Harisgillani Profile Picture

Harisgillani 4

#2
dserp Profile Picture

dserp 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans