Scenario: Looking to receive an daily email of any ACH account changes on Vendors in the past day.
Example Solution:
- Open the VA Inquiries form
- Create a new Record by entering CTS_VendorInfoChangeNotifier in the Query Name Field
- Enter Vendor ACH Information Change Notifier in the Title Field
- Enter Created on 9/5/2023 by CTS-Mike R. This is the source code for the notification emails to be sent when there are AP vendor ACH information changes in the Description Field
- Select SQL as Type
- Check/Uncheck Assignable in Work Center as desired (Note Vista bug that doesn’t default this field correctly)
- Enter SQL Query #1 (found at the bottom) in the Select field.
- Save and close the form.
- Open WF Notifier Job Manager
- Enter CTS_APVendorInformationChanges in the Job Name & Description Fields.
- Set Query type to 1-VA Inquiry
- Select CTS_VendorInfoChangeNotifier as the query.
- Set the desired schedule
- On the email tab, enter the desired recipient, subject, and header.
- Change Format to 1-Rich Text
- In the Body field, you can insert table by click Table button and add all columns to the table, format table as desired.
- Check the Consolidate Notifications field at the bottom of the form.
- On the Consolidations Group tab, add [To] to the Grouping Criteria.
- On the Email tab, press Test Email button to test the notifier to make sure it functions as expected.
SQL Query #1
SELECT
Co
,Vendor
,FieldName
,CASE
WHEN FieldName = 'BankAcct' THEN '******' + RIGHT(RTRIM(OldValue), 4)
ELSE OldValue
END AS OldValue
,CASE
WHEN FieldName = 'BankAcct' THEN '******' + RIGHT(RTRIM(NewValue), 4)
ELSE NewValue
END AS NewValue
,ChangedBy
,ChangedOn
FROM CTS_VendorInfoChangeNotifier
Where ChangedOn >= DATEADD(d,-1,getdate())
Leave A Comment