The Opportunity Manager® Alerts Lightning Component dynamically shows alert messages when criteria are met on a particular Opportunity record. The alert messages are fully customizable and are controlled via Salesforce.com Custom Metadata Types.

Each alert is dependent on a checkbox formula field on the Opportunity object. ****To create a new alert, you must first create a new checkbox formula field on the Opportunity object when “TRUE” indicates that the alert should appear.

The Opportunity Manager app includes several standard Opportunity Formula Fields which can be leveraged when creating the required checkbox formula fields to trigger alerts. The table below identifies each of these alerts along with recommended formulas for the corresponding Opportunity Formula Fields required to trigger the alert:

Standard Opportunity Formula Fields

To edit, deactivate, or delete existing alerts:

  1. Navigate to the gear icon and click “Setup”.
  2. In the Quick Find box, type “Custom Metadata”. Select “Custom Metadata Types” from the menu.
  3. On the row labeled App Alert, click “Manage Records”.
  4. Click “Edit” or “Delete” to interact with a particular alert.

To create a new alert:

  1. Navigate to the gear icon and click “Setup”.

  2. Click “Object Manager”. In the search box, type “Opportunity” and select “Opportunity”.

  3. Click “Fields and Relationships”, then click “New”.

  4. Select the Data Type for your new field as “Formula”, then click “Next”.

  5. Enter a label, then select “Checkbox”, then “Next”.

  6. Enter the formula that when “TRUE” indicates the alert should appear. Complete field setup and save.

    <aside> 💫 RECOMMENDATIONS: We recommend that you use this opportunity to customize the appropriate timing of these alert fields and when they should appear to the user.

    By default, you could simply decide that you wanted an alert to appear anytime the user had not identified a Value Driver. To do this you would simply select the “No Value Driver” field from the Insert Field drop-down menu. This would enter “FMOppMgr__No_Value_Driver__c” into the formula field.

    You could decide that you wanted to trigger this formula as “TRUE” only once the user has reached a certain stage in the sales process. In that case, you would still select the “No Value Driver” field from the Insert Field drop-down menu, but you would also need to add some additional criteria. For example: FMOppMgr__No_Value_Driver_Outcomes__c && OR(ISPICKVAL(StageName,'Insert Stage Name')

    This would set the checkbox formula to “TRUE” if BOTH of these conditions were met.

    You have the flexibility to add additional criteria to these checkbox fields in order to ensure they fit your current selling motion. Other additional fields you may want to consider including: ▪ Amount ▪ Close Date ▪ Sales Process Stage ▪ Opportunity Type

    </aside>

  7. Next, remember or copy the API name of the new formula field. You will need this when creating the new Alert Metadata Type.

  8. In the Quick Find box, type “Custom Metadata”. Select “Custom Metadata Types” from the menu.

  9. On the row labeled App Alert, click “Manage Records”.

  10. Click “New”.