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 Automate - Process Mining
Unanswered

Copy excel files with dynamic file names

(0) ShareShare
ReportReport
Posted on by

I want to copy excel file with dynamic file name.

 

I am trying to do the same with copy file action as shown below:

 

file: /CTPT_Automation/Oppertunity_sheets/sCRMID.xlsx where sCRMID is variable

 

The file id '/CTPT_Automation/Oppertunity_sheets/13579.xlsx' is not valid. where 13579=sCRMID is dynamic

 

Kindy suggest any way to copy excel file with dynamic file name.

Categories:
I have the same question (0)
  • manuelstgomes Profile Picture
    6,625 on at
    Re: Copy excel files with dynamic file names

    Hi @Anonymous 

     

    You can use a "Compose Action" to build the path you want. The using the "Move or rename a file using path" you can move it to the path that is in the variable or compose.

     

    Can you please check if and let me know if you have any questions?

     

    Cheers
    Manuel

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    on at
    Re: Copy excel files with dynamic file names

    Hello @manuelstgomes 

    Thanks for your reply but this is not working perhaps. Let me tell you the requirement in detail :

     

    I have one folder on SharePoint which have many excel files saved with different file names obviously. 

     

    Now using power automate, I want to search one file based on its name, want to copy that file, edit that file by adding some more sheets in it and again want to save that file.

     

    File I can save in same folder only with updated file name or in another folder also.

     

    I am trying to do the same with below action  :

     

    Folder name is : /CTPT_automation/Oppertunity_sheets

    Excel file name is :      sCRM ID.xlsx  (means there are many files in this folder with different sCRM IDs)

     

    PrinceGoyal_0-1620028582294.png

     

    so In power automate, I want to give the reference of this sCRM ID to pick the file but I am getting below error:

     

    (in below excample : scRM iD = 13579

     

    PrinceGoyal_1-1620028764265.png

     

    but this file with same name is there in the folder as shown below:

     

    PrinceGoyal_2-1620028838127.png

     

    This is the actual problem I am facing.

    May be if we can further discuss over some call or chat or meeting if possible.

     

    Thanks 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard