I have made a modification where I print a sales invoice via x++ code using to print SalesFormLetter.update. The customer invoice is setup in print management with the number of copies set to 1. This has worked fine up until now. I have a new requirement that I need to change the number of copies of the printed invoice based on the type of item being sold. In my process can I easily determine how many copies to produce, but how can I change the number of copies that will print be created by print management?
Thank you for the reply. The link you provided doesn’t seem to work, but I was able to search using the text of the link and found a document. I believe this will do what I need it to do based on the description. I am having a problem with setting up the conditions for the document. I followed the instructions in the document, part of which are in italics below, but I never get to the point where Select is available to edit the query.
Right-click an original or copy record and select New. A new conditional setting is created and is displayed in the list.
In the right pane, enter a description for the setting, such as Customers 4000 to 4050.
Click Select and enter the query condition that must be fulfilled in order to print the document by using the current settings. For example, you might select a range of customer accounts. Click OK to return to the Print management setup form.
I’m setup as a system administrator, so I don’t believe its a security issue. Has the functionality changed for D365F&O?
I see now. I was clicking new against the wrong menu item. I have it now against the correct location and I have a condition available. Thanks for all your help.
Although your solution worked for my stated requirements, the users have come back and said that there are too many queries for them to setup and want to have a modification where I add a field to the item table to store the number of copies to print. This puts me back to square one. Can you tell me how I can change the number of copies of a sales invoice that is printed using x+ and salesFormLetter_Invoice?