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?
I never used this functionality, but it seems to be supported out of the box.
You can define conditional settings in in print management setup, specify a query for the given case and set the number of copies. Refer to documentation for detailed steps: Set up print management for a module > Specify conditional settings for an original or copy record.
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.
I'm setup as a system administrator, so I don't believe its a security issue. Has the functionality changed for D365F&O?
Sorry about the link; I've fixed it now.
The setup works for me D365FO:
Make sure that you're at the right level.
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.