Business Integration Solutions Documentation
Walkthrough: Credit Limit Change
About this walkthrough
This walkthrough provides an overview on how to send a notifictaion about credit limit change.
The sales person is notified about the change in the credit limit of a customer. The credit limit is the maximum amount by which you allow the customer to exceed the payment balance before warnings are issued.
Prerequisites
Template | Description | Default Report |
---|---|---|
TI_NM_CREDIT.LIMIT |
STAEDEAN Template - Notifictaion for Credit Limit Changes Send using SMTP |
N/A |
- To simulate mail using SMTP Writer, use the Papercut tool. Papercut is a simplified SMTP server designed to only receive messages (not to send them on) with a GUI on top of it allowing you to see the messages it receives:
- If you are using Papercut tool, following will be your SMTP Writer settings:
- In case you are not using the Papercut tool and if you want to use your personal account (only for testing purpose) to relay messages then you can provide the SMTP Server settings and user credentials. For example, in the screenshot below the settings are provided for a personal Live account, from where the mails will be sent. In case you have a Gmail, Yahoo, etc. account, please search for the settings online or contact your Administrator for relevant SMTP settings:
Story
- This connection uses the Record Change Event for ‘Modification’ and it is linked to a specific internal document TI_NM_CREDITLIMIT1 which contains only one field: the Credit Limit (LCY) field from the Customer table.
- This means, that when the credit limit for a customer changes, the pipeline gets triggered.
- The connection contains a Splitter activity, which results in one message for each customer.
- The Header Mapper activity is adding the headers to the message body, so the recipients and the E-mail subject are filled in.
- The XML to HTML Translator activity allows you to create an HTML E-mail message, based on your branding templates, but it is also possible to configure an HTML body manually.
- The Email is send via the SMTP Writer endpoint, which allows you to send multiple E-mails at a time.
- The internal document TI_NM_CREDITLIMIT2 contains all the information you need to configure the XML Generator activity, the Splitter activity, the Header Mapper activity and the XML to HTML Translator activity.
- Adding other fields to this document allows you to define a personal E-mail message.
Task
Setup
- Import Notification-TI_NM_CREDIT.LIMIT.zip configuration package.
- Open the TI_NM_CREDIT.LIMIT Notification.
- On the Notification page edit the SMTPWRITER and enter relevant settings. In the following example we assume that you have installed and are running the Papercut tool to simulate SMTP.
- Run the Check Configuration process to see if there are any errors.
Restart the RTC client. This is required because we want to activate the Record Change Event and start capturing any modifications.
Process
- Open Customer Card, say for The Cannon Group PLC (10000).
- Modify the value in the field Credit Limit (LCY).
- Click OK.
- Open the TI_NM_CREDIT.LIMIT Notification. > To check if the Record Change Event has captured the modification, edit the RECORDCHANGEEVENT. Click on Navigate, Details. There should be an entry in the Record Changes page.
- Process the Notification.
Result
Papercut is receiving a new message for each customer which has a changed Credit Limit.