How to attach file and strip name for email

I’m looking for help. I am creating an email that takes a file from online and sends it to a member of my staff and crafts and email. I can’t figure out how to take the filename from a website and decode it in order to then use it as a part of a subject line of an email. I’ve tried getting name and getting text, and I keep either a blank entry or the word “text”.

I’m sure it’s something simple, but I just can’t figure it out. The file is located on our company sharepoint site, and I’m wondering if the security embedded in our site is what’s preventing this from working.

In order for you to see the shortcut work, you will have to pick a file from somewhere on the web and use it as the input to your shortcut.