--- title: "Enable Duplicate Search for existing lines" slug: "enable-duplicate-search-for-existing-lines" description: "Learn how to check for line duplicates in the list of lines that have been already added. " updated: 2024-08-27T20:47:51Z published: 2024-08-27T20:47:51Z canonical: "docs.zilliant.com/enable-duplicate-search-for-existing-lines" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.zilliant.com/llms.txt > Use this file to discover all available pages before exploring further. # Enable duplicate search for existing lines You can add a Quick action that the user can select to check for duplicates among exisiting lines in a deal. ## Configure a Lightning Wrapper component 1. Go to **Developer Console** and create a Lightning Component: #### SampleDuplicateCheckActionWrapper ``` ``` 1. Replace **Name of the Deal Manager Duplicate Check Configuration** with the name of the **Deal Manager Duplicate Check Config** [record you created](/v1/docs/check-for-duplicate-lines). 2. Select **Save**. ## Create a Quick Action 1. Go to **Setup > Object Manager > the Header (deal) object > Buttons, Links and Actions**, then select **New Action**. 2. From the **Action Type** dropdown, select **Lightning Component**. 3. From the **Lightning Component** dropdown, select the name of the component you created. 4. Set the value of **Height** to 250px. 5. In the **Label** field, enter a custom name for the new action button, such as **Duplicate Check**. 6. Select **Save**. ## Drop the new action on the object layout 1. Go to **Page Layouts** for this object and select a layout. 2. In the **Mobile & Lightning Actions** section, find the new action button. 3. Drag it to the correct place in the layout. 4. Select **Save**. ## Optionally configure labels in the Duplicate Check modal Custom labels: - **Modal** header—**zpl.DuplicateCheckModalHeader** - **Modal** body—**zpl.DuplicateCheckModalBody** - **Cancel** button—**zpl.cancelButton** - **Run** button—**zpl.CheckForDuplicatesButton**