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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to move file from one folder to another folder in Sharepoint ?

(0) ShareShare
ReportReport
Posted on by 468

Hi Team,
do we have any reference code to move file from one folder to another folder in SharePoint?

with below code i am able to check the file exists or not but there is no method to move the file.

System.UriBuilder builder = new System.UriBuilder(integrationSource.SharepointUrl);
var host = builder.Host;

ISharePointProxy proxy  = SharePointHelper::createProxy(host, integrationSource.SharepointSite, externalId);

Microsoft.Dynamics.AX.Framework.FileManagement.SharePointDocumentStorageProvider storageProvider =
new Microsoft.Dynamics.AX.Framework.FileManagement.SharePointDocumentStorageProvider(proxy,TestIntegrationDefinition.SharepointFolder);

boolean fileExists;
fileExists = storageProvider.FileExists("Test.xlsx");



if(fileExists)
info("OK");

Regards,

Vijay Yelmame

I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,563 Moderator on at

    Hi Vijay, You might already know, it can be done easily in tools like Power Automate or Logic Apps, as per my experience mostly customers using it these days. I could not find any article or code to move the file to another SharePoint folder using C#.

    Probably, someone will provide the code but consider those tools as well.

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

News and Announcements

[Smoke test 2510.1]

Quick Links

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans