Setting up the Print management for sending documents by e-mail is a very manual process in most implementations I’ve seen. It takes a user quite a lot of steps to set up a the system for sending documents on e-mail and getting it wrong has grave consequences (It actually stops your sending the invoice process, while still having the invoice posted!). I’ve dove down in to some data and found a smart way to dynamically set this up so that you only have to tag a e-mail address on the customer with a role and you’re done. This will also work with other documents like packing slip or customer statement and should eliminate the setup issue.
Let me show you how to do it!
Step 1: Set up a new contact purpose for the document.
You could use the default ones, but in my experience you should differentiate pr. document type.
Go to: Organization administration > Setup > Global address book > Address and contact information purpose
Add a new type and tick both Contact information and Postal address check boxes.
Step 2: Set up the Print Management
So selecting what customers should receive require you to specifically trigger the customer either by filtering by a parameter or setting it up by hardcoding the customer level print management setup. My idea is to dive down to see if the customer has a contact e-mail that is tagged with the “Invoice” role (Step 1) and trigger based on that.
To set up general print management settings, go to:
Accounts receivable > Setup > Forms > Form setup | Print Management
Create a new print setup
Click the original node and setup the default printer settings and then add a new node on the original node.
Give the node a name (Like “E-mail”) and set up a condition for the query/filter. When the filter is true the invoice follows this setup. If not it will default back to “Original” setting.
The query needs to be extended to get the required data available. You extend the query by right clicking the node and select a 1:n or n:1 relations.
- n:1 > Customer
- n:1 > Global address book
- 1:n > Party location relationship
- 1:n > Locations
- 1:n > Communication details
- 1:n > Contact information and role relationship
- n:1 > Roles
That should give you a query like this.
Then add the “Roles” table, “Type” field and select the desired Criteria (Like “Invoice”). Click OK to close the criteria dialogue.
Setup the print to e-mail
Now set up the printing settings by selecting the arrow at the end of the “Destination” and select “Printer setup”.
Notice that you can add a preferred footer for the invoice.
Select “E-mail” in the left column. Then on the “To” line select the “Edit” and in the Customer purpose field select the role you created in Step 1 (Like “Invoice”).
Now add a subject and select the desired format (I prefer PDF).
Click OK on the Print destination setting and close the Print management form.
Step 3: Setting up a customer
This is the final step and the only one you need to repeat when you now want to add a new customer to be emailed the invoices.
Create a new email address or use an existing one on a customer.
Now select the “More options” menu and select “Advanced”.
Select the “Invoice” role (or another if you created a different one in step 1) on the “Purpose” drop down. You can even have multiple roles selected if you want, so if you do a multiple setup with different documents you can add multiple roles/documents to one e-mail address.
Setup is done!
So now all you have to do is to remember to tick the “Use print management destination” check box when posting an invoice and all customers with this role on an email will get an email instead of going to print.
Oh… You’re welcome!