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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / AutoFlow to attach las...
Power Automate
Unanswered

AutoFlow to attach last file uploaded in a folder within an email

(0) ShareShare
ReportReport
Posted on by 7

Hello,

I am trying to build a flow where it make an attachment of the last file uploaded to a certain folder in an email and this is what i am trying to use 

1000002829.png

but this is not working 

Anybody got an idea what is wrong?

And how to make a flow do what i am asking for 

Categories:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Laith_Zureigat  ,

     

    Please use the below expression for the file identifier ,

     

    outputs('Get_files_(properties_only)')?['body/value'][0]?['{Identifier}']

     

     The get files action will always return you an array(even if you specify the top count as 1) and you will end up inside an apply to each loop.
     

    Else you can use initialize a string variable after the trigger and append the get file content output to that string variable inside of the apply to each loop and use the value from that variable for your send email action.

     

    If this solves your problem , please give this answer a thumbs up and mark this answer as a solution.

     

    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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard