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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send a file to onedriv...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 8

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

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,856 Most Valuable Professional on at
    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

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at
    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 Profile Picture
    8 on at
    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 🙂

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at
    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 Profile Picture
    8 on at
    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

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at
    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!

  • Stéphane_78 Profile Picture
    8 on at
    Re: Send a file to onedrive at Sharepoint with a specific file name

    Very big thanks Yashag

     

    it works 🙂

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

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard