Skip to main content

Date Last Used

Date Last Used (DLU) captures changes triggered by users or other customizations. Specifically, the last date the Customization, or the data it contains, was created, changed, accessed, processed or used.The DLU value indicates that the customization was used at least as late as the DLU. It does not indicate if it was used earlier. If DLU is blank, it indicates there in no verified date.

DLU CustomField Details

Setting the DLU Expiration

DLU Metadata Types

Excluded Metadata Extended Types

DLU Scheduler

DLU CustomField Details

CustomField usage data improves the accuracy and usefulness of the Date Last Used, enabling you to make better decisions about the value of maintaining specific CustomFields. Usage data includes:

  • how often the field has data (frequency)
  • how recently the field has been used (recency)

NOTE: DLU analysis should only be performed in Production orgs. Sandbox orgs do not reflect actual usage.

Usage data fields:

  • % Populated displays the percentage of Records with the field populated (not blank). Fields with low usage are clean up candidates. For example, if the field appears on 1000 records, but there is only data on 400 of the records, it is 40% populated.
  • DLU is now defined to be the last time the field was updated with Field History Tracking enabled. Field History Tracking ensures the DLU is accurate. If Field History Tracking is later disabled, the DLU no longer updates and the data may not be accurate. The new Date DLU Analyzed and DLU Status provide additional insight.
  • Date DLU Analyzed displays the last time the scanner was run with Field History Tracking enabled.
  • Parent Last Update Date is set to the CreatedDate of the most-recently-created Record with the CustomField populated. This provides usage recency information when Field History Tracking is disabled. CreatedDate is more accurate for the CustomField than the LastModifiedDate for the record.
  • DLU Status displays the current status:
    | DLU Status | DLU | Field History Tracking | Date DLU Analyzed | Parent Last Update Date | | --- | --- | --- | --- | --- | | Unavailable | Blank | Never enabled for this field. | Blank | Populated | | Pending | Blank | Enabled. Waiting for the scanner to run. | Blank | Populated | | Current | Populated | Enabled. DLU is current and accurate using automated nightly scans. | Today | Blank | | Recent | Populated, May be stale | Disabled. Last scan when enabled was within the past three months. Three months is the default time period. See Setting the DLU Expiration. | Within set time period | Populated | | Expired | Populated, May be stale | Disabled. Last scan when enabled was longer than three months ago. Three months is the default time period. See Setting the DLU Expiration. | Older than set time period | Populated | If Field History Tracking is enabled for a CustomField with a DLU Status of either Recent or Expired, the status is changed to Pending. Here is an example:
    Example of the DLU status fields for a CustomField

Notes

  • When Field History Tracking is enabled, the DLU is accurate, and the Parent Last Update Date is blank.
  • If Field History Tracking has never been enabled, only Parent Last Update Date has a value. Use Parent Last Update Dateand % Populated together to get a sense of the usage.
  • If Field History Tracking was enabled and later disabled, there are values in DLU and Parent Last Update Date. Generally, you would use the most recent of the two together with % Populated to get a sense of usage. If DLU Status is Expired, it is probably safe to ignore DLU.

Setting the DLU Expiration

The DLU Parameters specify the number of months to wait before changing the DLU Status from Recent to Expired for a CustomField. This only applies to a CustomField where Field Tracking History has been disabled. To change the time period:

  1. Open Setup
  2. Expand Custom Code
  3. Select Custom Metadata Types
    Open Custom Metadata Types
  4. Click Manage Records by Strongpoint DLU Parameter.
    Click Manage Records to open the record
  5. Click Edit by DLU Expiration.
    Edit the parameters
  6. Set the DLU Expiration (Months). The default is three.
  7. Click Save.

DLU Metadata Types

Metadata types marked with an * must have the Event Logs enabled to gather DLU information. DLU can be used for the following metadata types:

Salesforce Family Types & JoinsMetadata TypesDLU
WorkflowWorkflow RuleDate workflow rule was last run.
Workflow Approva lProcess Flow Validation RuleLast date base record updated, if enabled
ScriptsApex Class***** Apex Trigger***** Apex Component***** Lightning Component Lightning Web ComponentThe last date the code was triggered by any script based on the log of the last time it was run.
FormsLayout Compact LayoutIf assigned to a profile, it is the date the last record that belongs to the layout was updated .
Apex Page*****The last date the page was accessed (the code was triggered).
ReportsReportLast date report was run.
DashboardLast date dashboard report was run.
Report TypeLast date report using the report type was run.
Analytic SnapshotLast date a dashboard it is on or dependent script was run.
List ViewLast date the List View was accessed.
Data SourcesStandard FieldLast date the value changed.
Standard Object Custom ObjectLast date a record was saved.
Custom FieldLast date the value changed or if formula field, the maximum last date of the fields in the formula.
Dependent FieldsCustom Field LookupMinimum of the DLU of the record it exists on and the DLU of the source field.
Profiles and RolesUserLast login by the user.
RoleCalculated based on the last time someone logged in with that role.
ProfileCalculated based on the last time someone logged in with that profile.
Permission SetCalculated based on the last time someone logged in with that permission set.
PackageText that displays the name of the packageMaximum DLU of object in the package.
Extended Types (Other)App MenuDLU of the parent Custom Application.
Assignment RulesDate rule was last run.
Auto Response RulesDate Auto Response rule was last run.
Call Center
Connected AppDate App was last run.
Custom ApplicationMaximum DLU of customizations belonging to the application.
Criteria Based Sharing RuleMaximum of related Sharing Rules.
Custom Application ComponentMaximum DLU from parent applications.
Custom LabelMaximum DLU of related field.
Custom MetadataDate modified of the object that has the value in the metadata.
Custom Object TranslationDLU of the parent object.
Custom Page Web LinkDLU of the APEX page.
Custom PermissionDLU of a profile that has the custom permission.
Custom TabDLU of the parent Custom Application.
DocumentLast time the file was opened or accessed by the system.
Email TemplateDate Template was last used to send emails.
Escalation RulesDate rule was last run.
Field SetLast date a field value changed.
Flow DefinitionDate flow last accessed.
Global PicklistMaximum DLU of fields that use the picklist.
GroupLast time someone from the group accessed the system (always employees).
Installed PackageMaximum DLU of component of the package
LetterheadLast date template accessed.
Matching RuleDate rule was last run.
Post TemplateDate Template was last used to send emails.
QueueMaximum DLU of code / workflow run on the Queue.
Record TypeMaximum DLU of fields that use the record type.
Sharing RulesDate rule was last run.
Static ResourceMax of last access date (document) or DLU code referencing it.
Synonym DictionaryMaximum DLU of related fields.
Territory2Date Territory2 rule was last run.
Territory2 ModelDate Territory2 rule was last run.
Territory2 RuleDate rule was last run.
Territory2 TypeDate Territory2 rule was last run.
TranslationsMaximum DLU of related fields.

Excluded Metadata Extended Types

DLU is not used for the following metadata Extended Types:

Action Link Group TemplateAura Definition Bundle
Auth ProviderBusiness Process
CertificateCors Whitelist Origin
Custom Feed FilterCustom Site
Data Category GroupDelegate Group
Embedded Service ConfigEvent Delivery
Event SubscriptionExternal Data Source
Flexi PageHome Page Component
Home Page LayoutNamed Credential
Path AssistantPlatform Cache Partition
PortalQuick Action
Remote Site SettingSaml Sso Config
S controlSharing Reason
Sharing SetSite Dot Com
Transaction Security PolicyWeb Link

DLU Scheduler

The Scheduler is where you can add frequency, day and time for processes to run. Under Field Usage and DLU, you can set up the scheduler to update the last used date field on customizations with the date the metadata was last used. It populates information for field usage on custom fields and custom objects and catch any permission set assignments related to users.

scheduler

Once the scheduler has been set up, you can view the DLU under the Metadata tab on the customization record.