cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jdill1313
Level: Powered On

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
Community Support Team
Community Support Team

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
jdill1313
Level: Powered On

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

Here is the flow I created. 

 

 

Flow One Drive.PNG

 

 
Super User
Super User

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

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

Community Support Team
Community Support Team

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

jdill1313
Level: Powered On

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

Thank you for your help. Those steps worked perfectly. 

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,832)