How to add the Archive Widget as a Lightning Web Component

    The Archive Widget can be added to the Lightning Web Component.
    From Package 21, there are two recommended widgets available for customization:
    CustomListRelatedRecordArchivedWidget
    CustomSingleRelatedRecordArchivedWidget

    From Package 21 and above, the RelatedRecordArchivedWidget is not customizable, and the Preview Table feature from the Archive Policy form no longer controls the root layout setting. (deprecated).

    There are two recommended procedures for adding the Archive Widget. You can select either option, and both are described in this article.

    Option One

    1. Navigate to Setup.
    2. Select the Object Manager tab.
    3. Select the object to insert the widget on its page, such as Account.
    4. Select “Lightning Record Pages” to access the layout editor.
    5. Select the existing record page or create a new one.
    6. Click Edit.
    7. Select the location to insert the widget on the page.
    8. On the Components toolbar scroll to the Custom - Managed section.
    9. Locate one of the components: CustomListRelatedRecordArchivedWidget or
      CustomSingleRelatedRecordArchivedWidget

       
    10. Drag and drop the component to the desired location. (Recommended - Archived Records tabs)
    11. On the right side of the screen, select the default child objects as required. (Max. 10)
    12. Click Save
    13. Click Activate.
    14. Click Close to go back to the object.

    Option Two

    1. Navigate to the Object you want to add the widget to.

    2. Open the object detail page.

    3. Click the Settings icon to open the drop-down menu.

    4. Select Edit Page.

    5. Click the middle component to see the different tabs on the right.

    6. Click Add Tab to add a new tab for the Archive.

    7. Click on the newly added tab.
      Choose Custom type and create a custom label for the tab (i.e. Archive).

    8. Click the new Archive tab to configure it.
      From the left menu, drag one of the Lightning Components under Custom Managed onto the newly created custom tab.

    9. Save the change.
      Make sure the page is Activated.

     

    Granting end-users access to the widget
     

    Once created, validate that end-users have access to the widget through the following permission set assignment:

    1. Go to Setup
    2. In the Quick Find, enter Users.
    3. Search for the Archive user you want to grant access to view archived records.
    4. Double-click on their name and scroll down to Permission Set Assignments.
    5. Select Edit Assignments and add the Permission Set Archive View Archived Records.
    6. Click Save.

     

     

     

     


     

    « Previous ArticleNext Article »


    Contact Us

    Sometimes you just want to talk to someone. Our customer support team is available by phone:
    Request a Technical Support Call Back