Created a PDF application which works fine, as standalone app. Would like to generate it on the server.
This works fine with a static filename with given settings, but would need to change the filename on the fly whilst running the application, generate it, and then send it as an email attachment with a meaningful name. Came across a macro sc_set_pdf_name which is very lightly documented; tried it but the given filename did not change.
I basically want to send a PDF email confirmation of an order placed through my SC application; generate the PDF to a given folder and name, and send it as an email attachment as order confirmation.
Any recommendations on how this can be approached.