Skip to main content
added 857 characters in body
Source Link

Refer to this link, latest post by meConsider if you want LWC on Account ListView.

  • Make sure you've added 'lightning__RecordAction as target and its target configs as well. meta-file

  • Create a quick action on the Account object, select Action Type as Lightning Web Component, and select your LWC component.

https://ideas.salesforce.com/s/idea/a0B8W00000QO2m8UAD/add-lwc-as-custom-button-for-related-list-and-list-view For the List View Button

  • Create a Dummy Account and restrict its deletion.
  • Create a New Button or Link on the Account object, select Display Type as 'List Button' and Content source as 'URL'
  • In the formula box, paste '{!$Site.CurrentSiteUrl}/lightning/action/quick/Account.Upload_Excel_File?objectApiName&context=RECORD_DETAIL&recordId=<18-Digit-Dummy-AcccountId>&backgroundContext=%2Flightning%2Fo%2FContact%2Flist%3FfilterName%3D__Recent '.

Now go to Object Manager and add the Button to the Account List View Layout. This will render lwc on list view page without the need of Aura Component, and will also retain the background.

Consider if you want LWC on Account ListView.

  • Make sure you've added 'lightning__RecordAction as target and its target configs as well. meta-file

  • Create a quick action on the Account object, select Action Type as Lightning Web Component, and select your LWC component.

For the List View Button

  • Create a Dummy Account and restrict its deletion.
  • Create a New Button or Link on the Account object, select Display Type as 'List Button' and Content source as 'URL'
  • In the formula box, paste '{!$Site.CurrentSiteUrl}/lightning/action/quick/Account.Upload_Excel_File?objectApiName&context=RECORD_DETAIL&recordId=<18-Digit-Dummy-AcccountId>&backgroundContext=%2Flightning%2Fo%2FContact%2Flist%3FfilterName%3D__Recent '.

Now go to Object Manager and add the Button to the Account List View Layout. This will render lwc on list view page without the need of Aura Component, and will also retain the background.

deleted 8 characters in body
Source Link
added 14 characters in body
Source Link
Source Link
Loading