Hi, Can Someone help my out how do I download a file to OneDrive and rename it to "CPLF" which will replace existing file.
Hi @teja_f3
You flow mappings looks ok to me except couple of things
1. You can directly declare the value under the create file action and it will overwrite the existing file. You don't have to use initialise variable but nothing wrong in that too.
2. Its about your IF condition. Remember the comparisons are case sensitive. So if you looking to get only .CSV files then better to convert to one case either small or capital using the expression ToUpper() or ToLower(). Also in my condition I used the operator as ends with. Here is my condition.
If you flow is not working then I believe your attachment is something like test.csv and you are checking CSV (capital) which won't evaluate it correctly. I am not sure about you have three conditions and one is left to blank as well.
Above the expression I used is
One note here, in case you don't know: when you add the action 'Get attachments' and select the "MessageID" from the trigger, your 'Get attachments' will automatically get wrapped inside the apply_to_each. Always glad to help! Tom 👍🏽👍🏽👍🏽👍🏽👍🏽
Hi @teja_f3 ,
Here's a flow to review. Please mark as a solution and give me a thumbs up (I'm collecting badges and kudos). Always glad to help! Tom
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional