Enable duplicate search for existing lines
- 27 Aug 2024
- 1 Minute to read
- Print
- DarkLight
Enable duplicate search for existing lines
- Updated on 27 Aug 2024
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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
- Go to Developer Console and create a Lightning Component:
SampleDuplicateCheckActionWrapper
<aura:component access="global"
implements="force:lightningQuickActionWithoutHeader,force:hasRecordId">
<zpl:DuplicateCheckModal duplicateCheckConfigurationName="<Name of the Deal Manager Duplicate Check Configuration>"
recordId="{!v.recordId}"/>
</aura:component>
- Replace Name of the Deal Manager Duplicate Check Configuration with the name of the Deal Manager Duplicate Check Config record you created.
- Select Save.
Create a Quick Action
- Go to Setup > Object Manager > the Header (deal) object > Buttons, Links and Actions, then select New Action.
- From the Action Type dropdown, select Lightning Component.
- From the Lightning Component dropdown, select the name of the component you created.
- Set the value of Height to 250px.
- In the Label field, enter a custom name for the new action button, such as Duplicate Check.
- Select Save.
Drop the new action on the object layout
- Go to Page Layouts for this object and select a layout.
- In the Mobile & Lightning Actions section, find the new action button.
- Drag it to the correct place in the layout.
- 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
Was this article helpful?