Powerautomate get file extension

I am trying to get file extensions from Onedrive but get an error

Here is what I have setup.

Current Setup

enter image description here

Error

enter image description here

Anyone know what I'm doing wrong?

thank you

images attached showing setup and current error

1

1 Answer

You are referring to the trigger action. However, in this instance you can easily retrieve it from the Get file metadata action instead.

Try this expression

last(split(outputs('Get_file_metadata')?['body/Name'], '.')) 
0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like