Has anyone specified an email attachment name via code?
I’m sending an Epicor standard report (several customized styles) to our customers based on criteria - A number of email address and recipient decisions must be made, therefore I’m executing the logic in a function which then sends the reports via email.
If I were using APR, I could set the attachment file name for each Style (and include helpful info). However, since I’m doing this all within code, I can’t seem to find the appropriate parameter to set.
For context, I’m setting the parameters in the Report’s parameter row:
It most certainly is in the submit to agent step if I am not mistaken, whether someone did this with their own call or they did this in a BPM step I can’t recall.
Uh… it looks like the answer. It’s a bit more (real) coding that I typically do in Epicor, but I guess it’s time to broaden the ole horizons. I will dust off my reference books, grab some chicken, and see if I can digest (Lol!) this. Thank you!
I will say, if we can’t finagle the submit to agent call, I can show you how to use RunDirect to grab the report and do it the hard way. (It’s not that hard.)