cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Stéphane_78
Level: Powered On

Send a file to onedrive at Sharepoint with a specific file name

Hi everyone,

I come to you because I meet a problem with my first flow

I want to move an onedrive file to sharepoint with the condition in the name of the file

 

My Flow

2019-09-24_09h32_05.png

the name of my finished file well by "Avignon.xlsx"

2019-09-24_09h32_23.png

 

But during the execution, the condition return a False

2019-09-24_09h31_46.png

Thanks for advance for your help

Have the nice day

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Send a file to onedrive at Sharepoint with a specific file name

Hey @Stéphane_78 

 

You do not have to manually select the file from anywhere. You just need to add the file path from the dynamic selector. DO1.PNG

 

DO2.PNG

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

7 REPLIES 7
Super User
Super User

Re: Send a file to onedrive at Sharepoint with a specific file name

Hi @Stéphane_78 

 

Could you please show the run history results of your first step 'When a file is created'?

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Dual Super User
Dual Super User

Re: Send a file to onedrive at Sharepoint with a specific file name

Hi @Stéphane_78 

 

When a file is created, the display name is not returned just as is. You need to add the get file metadata using path to get the file details and then wrap it in the condition: ffr.PNG

 

I have tested this in my environment and it works fine. Relace the ends with text with your text and check if it works as expected.

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Stéphane_78
Level: Powered On

Re: Send a file to onedrive at Sharepoint with a specific file name

Hello Yashag,

Thx for your help.

I lunch a test with your solution, but i have a error message "ID for this file is not valid"

2019-09-24_12h37_10.png

Here's how I added your step  (file path is "Chemin d'accès"):

2019-09-24_12h36_36.png

thanks again 🙂

Dual Super User
Dual Super User

Re: Send a file to onedrive at Sharepoint with a specific file name

Hi @Stéphane_78 

 

Can you confirm that you have added the File Path in the Get file metadata using path action? In the condition you should then use the diplay name from the dynamic attributes of the Get File Metadata Using Path action. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Stéphane_78
Level: Powered On

Re: Send a file to onedrive at Sharepoint with a specific file name

Hello

 

Oups no, i add only "file path". I try again and it's necessary to select the file and for me is a problem because, the name of my file have a timestamp, so that will change everyday.

 

If you have an alternative, I'm interested

 

Thx

Dual Super User
Dual Super User

Re: Send a file to onedrive at Sharepoint with a specific file name

Hey @Stéphane_78 

 

You do not have to manually select the file from anywhere. You just need to add the file path from the dynamic selector. DO1.PNG

 

DO2.PNG

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Stéphane_78
Level: Powered On

Re: Send a file to onedrive at Sharepoint with a specific file name

Very big thanks Yashag

 

it works 🙂

Helpful resources

Announcements
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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,464)