You are here: Case management > Configuring case-type behavior > Tracking duplicate cases > Adding a weighted condition to duplicate logic

Adding a weighted condition to duplicate logic

Add a weighted condition to your duplicate logic to associate criteria with an importance, or weight, that is relative to other conditions. By using weighted conditions, you can more accurately find duplicate cases.

  1. In the explorer panel of Designer Studio, click Cases and then click the name of a case type.

  2. On the Settings tab, click Track duplicates.

  3. In the Case is duplicate when sum >= field, enter a threshold between 1 and 100 that a case must exceed for it to be considered a duplicate.

  4. Click + Add condition.

  5. Click the fx icon and select a function.

  6. In the Weight field, enter an integer between 1 and 100 that is added to the total weight of a case when the condition is met.

  7. In the fields that are displayed for the function, enter property names or values to compare with existing cases.

    Tip: Use the Primary keyword in these fields to distinguish between property values in the current case and existing cases. For example, enter Primary.FirstName and .FirstName in the fields for the [first string] equals [second string] function.

  8. Click OK.

  9. Click Save to store your settings in the pyDefaultCaseMatch case match rule.

Note: It is possible for a case to match weighted conditions but not be a duplicate. It is the set of exact conditions and the total weight of a case that determine whether a case is a duplicate.