---
schema_version: "1"
id: b17e5c9c04e307142a73c4b76207836e716aabc640865e941a562bb1689778c1
title: Adding Custom Automation to License Management App Objects
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform-pkg-exchange/managed_packaging/guides/lma/lma-customer-success.md
canonical_url: https://developer.salesforce.com/docs/platform/pkg2-dev/guide/lma-customer-success.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cd0f9e9f424cfb98176df8f0307d6a9a04c5846134dc95121fb309e63bb0ad7e
products:
  - Second-Generation Managed Packaging Developer Guide
  - merged-docs
---

# Adding Custom Automation to License Management App Objects

Here are some examples of how you can use the License Management App (LMA) to grow your business and retain customers.

| Availability                                                              |
| ------------------------------------------------------------------------- |
| Available in: both Salesforce Classic and Lightning Experience            |
| Available in: **Enterprise**, **Performance**, and **Unlimited** Editions |

## Alert Sales Reps Before a License Expires

If you’re managing licenses for several packages, it can be difficult to track the various expirations. If a license expires accidentally, you could even lose a customer. To help your customers with renewals, set up an Apex trigger or create a flow to email a sales rep on your team before the license expires.

## Notify Customer-Retention Specialists When an Offering Is Uninstalled

If a customer uninstalls your offering, find out why. By speaking to the customer, you have an opportunity to restore the business relationship or receive feedback that helps you improve your offering.

To notify a customer-retention specialist on your team, follow these high-level steps.

1.  Create an email template for the notification.
2.  Create a workflow rule with a filter that specifies that the License Status equals `Uninstalled`.
3.  Associate the workflow rule with a workflow alert that sends an email to the retention specialist.
