I am trying to create a flow that will identify a file in my OneDrive Downloads folder based on 2 conditions, and then rename it with today's date and move it to another folder.
This should be possible with the Compose and "Move or rename a file (OneDrive for Business)" connections but I am getting errors when it tries to execute the move/rename action.
I've pasted here what it says when I try to test the flow:
Error
Action 'Move_or_rename_a_file' failed
Error Details
The file id 'Daily Transaction Summary Report-2023-10 (1).xlsx' is not valid.
Here is the raw input of the action that fails:
{
"host": {
"connectionReferenceName": "shared_onedriveforbusiness",
"operationId": "MoveFile"
},
"parameters": {
"id": "Daily Transaction Summary Report-2023-10 (1).xlsx",
"destination": "C:\\Users\\xxx\\xxx\\xxx\\My DTS\\",
"overwrite": true
}
}
Perhaps I'm not fully understanding HOW to rename a file with that action? Should I be putting the new file name in the File field, or the old one so that it is identified?
I've even tried to split it up and perform the action twice: once to move, and once to rename. Could it be because the Excel file I am trying to rename doesn't have editing enabled when I open the file? That shouldn't prevent me from renaming it in File Explorer though.
Not sure, just looking for some direction here!