Move a file in Flow using REST api

Posted by

Leveraging its capabilities through REST API opens up a world of possibilities, enabling users to manipulate files with ease. One such essential function is moving files, a task that can now be effortlessly accomplished using the REST API provided by Microsoft Flow.

Benefits of Using REST API for File Management in Flow

  1. Automation: By leveraging REST API in Microsoft Flow, file management tasks can be automated, reducing manual intervention and saving time.
  2. Integration: REST API enables seamless integration with other applications and services, allowing for a more comprehensive workflow automation solution.
  3. Customization: Users can customize file management workflows according to their specific requirements, tailoring the process to suit their unique needs.
  4. Scalability: REST API-based solutions are highly scalable, and capable of handling large volumes of file management tasks efficiently and effectively.

The flow

Please note a common mistake that people make is providing the Folder path to the GetFolderByServerRelativeUrl method. Please note that you need to specify the Site URL as well.

This does not work
GetFolderByServerRelativeUrl ('/Shared Documents/Sudeep/Excel template.xlsx')
This works
GetFolderByServerRelativeUrl ('/Sites/Sudeep/Shared Documents/Sudeep/Excel template.xlsx')

Leave a Reply

Your email address will not be published. Required fields are marked *