Display archived data as related lists within Salesforce. Even though the data has been archived and is no longer stored directly in Salesforce, end users can still access and view the data in the familiar Salesforce interface in the Archive managed package.
By adding and customizing the widget, Salesforce Admins can gain more control over who can view archived data. You can define all the archived related objects and the order in which they appear as a default display.
From Archive Package 21, these widgets are recommended for customization.
-
CustomListRelatedRecordArchivedWidgetTo select up to 10 archived related objects and configure the order in which they appear, use the predefined
CustomListRelatedRecordsArchivewidget. All records of a specific archived related object are displayed in a collapsible widget. The first three selected objects are expanded as a default view. -
CustomSingleRelatedRecordArchivedWidgetTo select one archived related object for customized display, use the predefined
CustomSingleRelatedArchivewidget. The Parent Details page provides a customized view of the archived records.
CustomListRelatedRecordArchivedWidget
and CustomSingleRelatedRecordArchivedWidget are supported
as Archive Visualforce Components in Salesforce Classic. In the standard
email message layout, you can't add both Lightning and Classic > component
/Visualforce page.- Add the Archive Widget to the Lightning Page
Add the Archive managed package widget to Lightning with one of these recommended procedures.
Add the Archive Widget to the Lightning Page
Add the Archive managed package widget to Lightning with one of these recommended procedures.
Create a Custom Tag
- At the top left of the page, click the menu icon, and filter by typing the object you want to add the widget to, such as Accounts.
- Select an account. A page with the selected object and its information is displayed.
- Click the Settings icon to open the dropdown menu, and select Edit Page.
- Click the middle section to view the different tabs on the right.
- Click Add Tab to add a new tab.
- Click the newly added tab. Select Custom from the dropdown menu. Update a custom label for the tab, such as Archive.
- Click the newly created tab to configure it.
- Drag one of the Lightning Components under Custom Managed from the left menu onto the newly created custom tab.
- Complete the Default Child Objects as required.
- Click Save.
-
Click Activation.
The results are displayed to your users as defined, with an overview of the total number of records archived displayed. To drill down and expand the results, click a widget.
SingleRelatedObject widget, the default child object must be
Case, and only users with a Customer Support profile can see the
widget.
Create a Custom Component
- Go to Setup.
- Select the Object Manager tab.
- Select the Object to insert the widget on its page, such as Account.
- Select Lightning Record Pages to access the layout editor.
- Select the existing record page or create one.
- Select Edit.
- Select the location to insert the widget on the page.
- On the Components toolbar scroll to the Custom - Managed section.
-
Locate the components
CustomListRelatedRecordArchivedWidgetorCustomSingleRelatedRecordArchivedWidget. - Drag the component to the location.
- Save the change.
- Make sure the page is Activated.
- Click Close to go back to the object.
Archive Widget Access and Download Control (Optional)
Standard users can't access archived data through the widget
and may encounter a system.security.NoAccessException
error.
To turn on Archive Widget access:
- Go to Setup.
- Locate Permission Sets and select Archive View Archived Records.
- To assign the permission set to relevant users, click Manage Assignments and then Add Assignments.