I have built a flow that takes the files (attachments) from a SharePoint list and exports them to a document library. The flow is working perfectly except that none of the resulting files have a file type extension. Since the list could include .pdf, .xlsx, .docx, etc., I need a way to identify the file type from the list and dynamically append the extension to my name in the "Create File" block.
Here are the steps leading up to the file creation in my flow. Up to this point, it is working exactly as I want it to

EDIT: I have "File Name with Extension" as the last value in creating the file name in the library, but it does not successfully append to the outputted file. I expected if the attachment was named "contract.pdf" and I put that at the end of the name syntax, I would get Location_Document Number_Status_contract.pdf. What I get is Location_Document Number_Status_contract
Thank you for your help