See the processes when the workflow is triggered and an email with PDF attachment is sent to a customer:
Bill Sales Orders - when you submit this process, an invoice is automatically created and email is sent to a customer.
Invoice - when invoice is created, an email is sent to a customer.
Cash Sale - when cash sale is created, an email is sent to a customer.
The workflow will be restricted and it will be triggered only at the time when a specific employee/user perform Bill Sales Orders, create Invoice or Cash Sale process.
- As the Administrator go to the Customization > Scripting > Workflow > New.
- In the Basic Information section:
- Provide a Name
- Record Type = Transaction
- Sub Types = Cash Sale, Invoice
- Release Status = Testing; When a workflow is in testing mode, only the workflow "owner" can initiate the workflow on a record.
- Enable "Execute as Admin" check box.
- In the Initiation section enable "Event Based" radio button.
- In the Event Definition section enable the "On Create" check box and Trigger Type set to "After Record Submit". Event Type set to "Create".
- Click on the Save button.
- In the Diagram section > click on the New State > Click on the Save button.
- Click on the State 1 > Actions sublist > Click on the New Action button > select Type as "Send Email".
- In the Basic Information section:
- Trigger On = After Record Submit
- Event Type = Create
- In the Condition section select a user/employee who will have a permission to execute the workflow (the user/employee who performs billing for your company).
- In the Sender section enable the "From Field" radio button. Set the Record to "Current Record" and set the Field to "Sales Rep".
- In the Recipient section enable the "From Field" radio button. Set the Record to "Current Record". Set the Filed to "Customer".
- In the Content section use the Template you've already created for emails or use Custom message you would like to use for this process.
- In the Attachment section enable the Include Transaction check box and set Type to PDF. This means that email will be sent with PDF Invoice or Cash Sale attached.
- Click on the Save button.
Now, when you perform billing process or create Invoice or Cash Sale, an email with attached PDF transaction will be received by customer with sales rep's email from address. Please note that in the case of Cash Sale, it's necessary to disable "Email To" checkbox for a Cash Sale record as well as for an Invoice record.
No comments:
Post a Comment