Overview

This tutorial demonstrates how to create a rule that prevents creation of duplicate milestones. With the creation of milestones it is always recommended to start general, and then filter down as much as you can to create milestones on only the required results. For example, if you create a rule to detect the customer's first 100 logins within 90 days of launch, this rule will continue to detect this state each time it runs and creates duplicate milestones. This tutorial uses a checkbox to flag this condition, to prevent creation of a duplicate milestone.

Note: In this tutorial the term Go Live! is used. Go Live! refers to the first time a customer gains value using the product. If you use a different milestone name, it can be substituted for the use of Go Live!

Create or Review Rule for Setting Milestones

In order for this tutorial to work, a rule that creates milestones must exist. If your org already has a rule that creates milestones for “Go Live!, then skip this step.

  1. Go to Administration > Rules Engine > + Rule.
+RULE.png
  1. Select Rule Type as Bionic and Rule For Account. For more information on Bionic Rules, refer to Getting Started with Bionic Rules.
  2. Enter the rule name. For example, Milestone Go Live!
  3. Enter a rule Description (Optional).

Rule Name.png

  1. Click NEXT to navigate to the Setup Rule screen.
  2. Click DATASET TASK to enter the task details:
  • Enter the task name. For example, Milestone Go Live
  • Task Description (Optional)
  • Output Dataset Name
  1. Select Salesforce as the data Source.
  2. Select Usage Data as the source object.
  3. Add the following fields to the Show section:
  • Usage Data::Account
  • Usage Data::Account Name
  • Usage Data::Id
  • Customer Info::Orig. Contr. Date
  • Usage Data::Unique_Logins (Change to Count of Unique_Logins)
  1. Add the following fields to the Filters section:
  • Usage Data:: Unique Logins greater or equal 100 (enter the amount of logins to check)
  • Customer Info: Orig. Contr. Date greater or equal Subtract N Days from Rule Date (enter the amount of days to check)
  1. Click SAVE to save the task details or click CANCEL.
Setup Rule_Has GO Live! Milestone.png
  1. Click +ACTION and select Load to Milestones Action Type.
  2. Select the Rule Date.
  3. Select the Milestone name.

Setup Action_Milestone Go Live.gif

  1. Enter comments to help describe the milestone's purpose (Optional).
  2. Click SAVE.

Create a Custom Field

Create a field that allows a rule to check if a milestone already exists.

  1. Click your name > Setup > Create > Objects > click the Customer Info object.
  2. Scroll to Custom Fields & Relationships, and click New to create a new field.
Milestone_3.jpg
  1. In Data Type, select Checkbox, and click Next.
  2. For Field Label, enter Has Go Live milestone.
  3. (Optional) Enter a description and click Next.
Milestone_4.jpg
  1. Set field-level access as required and click Next.
  2. Click Save.

Create Rule to Check for Milestone

  1. Navigate to Administration > Rules.
  2. Click +RULE.
  3. Select Rule Type as Bionic and Rule For Account.
  4. Enter the rule name. For example, Has Go Live! Milestone.
  5. Enter a rule Description (Optional).

Has Go Live Milestone.jpg

  1. Click NEXT.
  2. Click DATASET TASK to enter the task details:
    • Enter the task name. For example, Has Go Live
    • Task Description (Optional)
    • Output Dataset Name
  3. Select Salesforce as the data Source.
  4. Select Milestone as the source object.
  5. In Show, add Milestone::Account.
  6. In Filters, add Milestone::Milestone Name contains Go Live.
  7. Click SAVE to save the task details.
 
Setup Rule_Has GO Live! Milestone.png
  1. Navigate to Setup Action.
  2. Click +ACTION.
  3. Select Action Type as Load to Customers.
  4. Under Field Mappings, map Account ID to Account (REFERENCE).
  5. Click +FIELD MAPPING, and set custom mapping to Has Go Live Milestone (BOOLEAN).
  6. Click SAVE. Schedule & Run the rule.

Setup Action_Has Go Live.gif

Enhance Rule for Setting Milestones

After completing the above steps, you can edit and add enhancements to the Milestone Go Live! Rule. In filters, add Customer Info::Has Go Live Milestone not equal to and select the checkbox.

Edit and Add Filter to Milestone Go Live.png

For tips and information on how to schedule a rule, see the Scheduling Rules article.

Be sure to run the Does Customer have Go Live! Milestone rule prior to Milestone Go Live!