Scenario
User requires to automate process of sending Customer Statement emails automatically via Scheduled Workflow. This is possible by creation of custom entity field, saved search and scheduled workflow.
Solution
I. Create Custom Entity Field to act as a flag in Saved Customer Search Results
- Navigate to Customization > Lists, Records, & Fields > Entity Fields > New
- Enter your field name on Label.
Example: Customer Statement Email - Select Check Box as your Type.
- Tick the Store Value box On.
- Under Applies To tab, tick the Customer box On
- On Display tab, select Main as your Subtab
- Click Save.
Note: You may either set this checkbox as default checked under Validation & Defaulting tab or manually tick this on for specific customer record or do a mass update to enable it for several customers.
II. Create Saved Customer Search with Open Balances
- Navigate to Lists > Search > Saved Searches > New
- Click Customer
- Enter your search title on Title
Example: Customer List for Workflow Statement Email - On Criteria tab, under Standard subtab,
- On Filter, add the following fields below:
- Customer Statement Email (Custom)
-
- Customer Statement Email: Select Yes
- Click Set
-
- Balance
-
- Balance: Select greater than
- Value: Enter 0.00
- Click Set
-
- Customer Statement Email (Custom)
- On Results tab, Select ID as the Sort By
- Under Columns subtab, click Remove All button.
- Add the following fields below:
- Select ID
- Select Name
- Select Email
- Select Customer Statement Email (Custom)
- Select Balance
- On Available Filters tab, under Filter:
- Select Customer Statement Email (Custom)
- Tick on the Show in Filter Region box
- Select Customer Statement Email (Custom)
- Сlick Save & Run
Note: Customers with greater than 0.00 balances while Customer Statement Email box is ticked on will show up on the results.
III. Create Workflow to Send Statements Automatically
- Navigate to Customization > Workflow > Workflows > New
- Basic Information section:
- Name: Enter Send Balance Emails
- Record Type: Select Customer
- Sub Types: Select Customer
- Execute as Admin: Enter Checkmark
- Release Status: Select Released
- Keep Instance and History: Select Always
- Enable Logging: Enter Checkmark
- Initiation section:
- Scheduled: Enter Checkmark
- Schedule:
- Saved Search Filter: Select Customer List for Workflow Statement Email
- Repeat: Enter Checkmark
- Frequency: Select your preferred frequency e.g Weekly
- Scheduled From Date: Select Todays Date
- Execution Time: Select your preferred time.
- Weekly Schedule:
- Repeat Every: Enter 1 week(s) (once a week)
- Monday: Enter Checkmark (you may select a different day)
- Click Save
- Click State 1
- At the bottom right corner: Click + New Action
- Click Send Email
- Under Basic Information:
- Trigger On: Select Entry
- Under Condition:
- Select a Saved Search Condition: Select Customer List for Workflow Statement Email
- On Parameters:
- Under SENDER, on Specific Sender: Select your name or an employee record with a company return email address.
- Under RECIPIENT, on Send to Current Record: Enter Checkmark
- Under CONTENT, select Custom to enter your composed email message or select Use Template for a generated email message.
-
- Under ATTACHMENT, File: Enter Checkmark
- Include Statement: Enter Checkmark
- Type: Select PDF
- Enter checkmark or leave no checkmark based on your preferences for:
- Show Only Open Transactions
- Consolidated Statement
- Under Basic Information:
- Click Save