When a sales confirmation (sales order) is downloaded, the file is named document.pdf. I like to use dynamic name here. Instead of document.pdf, it should be sales-order-number.pdf.
I tired but I could not correctly find a code-unit that is responsible to provide the document name. I really appreciate if someone can help me to figure out what exactly needs to be done here to achieve dynamic naming of the documents being downloaded.
Thanks.