Attach a PDF to an Email
I created a custom function to create a PDF file based on some text being passed to it from an AI agent output. The create file function works correctly (returns a file id) but when I go to attach to an email, I receive a "null" attachment, not the file name or format I was expecting. Any suggestions?