Why is the JavaScript return object not resolving to the actual filename when trying to attach a file in an email automation process?

I’ll try a test email later today