cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ByzKzlky
Helper II
Helper II

Is it Possible Get Unspecified File Name From OneDrive with Power Automate

Hello,

I reaaly need an urgent help.
I'm new on Microsoft Power Automate and I'm trying to built a flow.
This flow can be summarised like below:

1. Receive Email
2. Save Attachments to OneDrive
3. Copy OneDrive file to another OneDrive Folder (there are problem at this point. The file name can be changed for every email attachment and I need to get current file name to process other stpes. I've tried to use expressions to get generic name. First I've initialized a variable but I couldn't use it anywhere. Then I try to get the file name such as :concat('/xxxx_folder/',variables('name of initialized variable') but it didn't work.
4. After getting the file I need to get excel files and copy to another template excel file.
5. And final step is sending this new file as attachment with an email.

Is there any way to get unspecified file name and use it in other steps?
Thanks.

1 REPLY 1
Yutao
Microsoft
Microsoft

Hey @ByzKzlky ,

 

If what's blocking you in step #3 is to figure out the file name in step #2 (the saved attachment), wondering if you can try using the "Id" variable out of the Create file action in #2:

Yutao_0-1600448416941.png

 

Normally you can use to reference dynamically created files during a flow execution.

 

Hope this helps!

 

Yutao

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,699)