cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

When file is created Move File in Onedrive for Business

I am trying to create a flow using One Drive for business. Basically the flow is supposed to look in a One Drive Folder (Test 1) and if a Excel CSV file is created, copy it to a One Drive folder (Test 2), send me an email notification, then delete the original file from (Test 1).

The whole flow says it ran successfully and I am getting the email notification but  it is not creating the new file in Test 2 or deleting the file from Test 1. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: When file is created Move File in Onedrive for Business

 

Hi @jdill1313 ,

 

When configuring the Create file action, you missed the file extension.

You can use the following method to get the extension of the source file and add it to the new file.

When configuring the Delete file action, use File identifier output by When a file is created.

It is also recommended to set the Folder in When a file is created to the folder where the file is stored.

34.PNG

Expression reference:

last(split(triggerOutputs()['headers']['x-ms-file-name'],'.'))

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Highlighted
Regular Visitor

Re: When file is created Move File in Onedrive for Business

Here is the flow I created. 

 

 

Flow One Drive.PNG

 

 
Highlighted
Super User II
Super User II

Re: When file is created Move File in Onedrive for Business

your flow looks good, can you share the expanded successful run output?

Highlighted
Community Support
Community Support

Re: When file is created Move File in Onedrive for Business

 

Hi @jdill1313 ,

 

When configuring the Create file action, you missed the file extension.

You can use the following method to get the extension of the source file and add it to the new file.

When configuring the Delete file action, use File identifier output by When a file is created.

It is also recommended to set the Folder in When a file is created to the folder where the file is stored.

34.PNG

Expression reference:

last(split(triggerOutputs()['headers']['x-ms-file-name'],'.'))

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Regular Visitor

Re: When file is created Move File in Onedrive for Business

Thank you for your help. Those steps worked perfectly. 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (6,947)