Skip to main content

Dynamic email recipients with CC User Mapping

  • April 5, 2024
  • 1 reply
  • 92 views

Christian Hauggaard
Community Manager
Forum|alt.badge.img+5

In this article, you will read about dynamic email recipients with CC User Mapping in TimeXtender Data Quality. This is best explained with a worked example and the relevant solution to this hypothetical problem.

Worked example

Scenario

You have created a test in TimeXtender Data Quality that fetches all sales orders that fail some predefined rule. In this example, your test will check if the sales discount given to your customer by your sales agent is too high - above 35%. For this alert to be effective, the right people in your organization need to receive an alert when a discount above 35% is given.

Solution

In this scenario, users responsible for the discounts given to customers are the heads of all departments. As a result, you want the heads of departments to be sent an email immediately when the exception is caught. However, in addition to this immediate notification being sent to department heads, you have been asked to add the responsible salesperson as a CC to the email notification. This is likely to change depending on the salesperson giving the discount to their customer. Therefore, you need to map the email CC dynamically.

Here is our query:

SELECT *
FROM [AdventureWorks].[Sales].[SalesOrderDetail]
WHERE [UnitPriceDiscount] > 0.35

To map the responsible department head, you need to navigate to the Exception Manager Properties User Mapping. Then, select the column containing the relevant user information.

Note that you can map to custom user information by using External User mapping, for example, if you want to map to user data in your CRM system.

To add the salesperson to the email:

  1. Open the Notifications tab in Exception Manager Properties
  2. Create email notification Add notification -> Email
  3. Give the notification a name, default name is Email
  4. Select the correct Email Template
  5. Add in any CC email address (e.g. anotheremployee@timextender.com)
  6. Select the correct Mapping Type
  7. Select the correct Mapped CC Column

image-png-Apr-16-2024-01-21-26-6038-PM.png

image-png-Apr-16-2024-01-20-50-1545-PM.png

Note: Here you can read more about Configuring Exception Management (Tutorial)

Did this topic help you find an answer to your question?

1 reply

  • Starter
  • 2 replies
  • February 25, 2025

I’m wondering how I could use this feature if e.g. there are two department heads for the same branch. How can I send the exception to both of them? 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings