
Announcements
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
but this is not working
Anybody got an idea what is wrong?
And how to make a flow do what i am asking for
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,