Skip to main content
Suggested answer

SavesAS Function & File Management in Business Central On-Prem (ver16)

editSubscribe (0) ShareShare
Posted on by 25

I am currently working on a Packing List report that needs to save as pdf automatically in a particular path in our server upon click of an action button in a Sales Order. I am new to development, I have tried following the saveaspdf method in the Microsoft website however when the action button was ticked now, an I/O Error shows even when I already deleted the codes I have done in the Visual Studio Code. Is there any sample code you can advise to achieve the first scenario I have mentioned above? Another twist to this is that, it should only save when the sell-to customer code is equal to Customer 1, Customer 2 & Customer me please! Will File Management Code Unit help me with this? Thank you in advance!