0

Example

I would like to add a quick action button to the list view page for custom object Invoice__c, the quick action is called Generate Invoices and when executed will run apex code to generate 100 Invoice__c records.


I would like to add a quick action to a custom object list view in Salesforce Lightning which opens a Lightning Component.

But as far as I can see it is not possible (at the moment).

So, what are my options for triggering/executing some Apex code from a custom object list view?

  • Is this for Lightning or Classic? – Tushar Sharma Nov 3 '18 at 13:34
  • 1
    Can you elaborate a bit on your use case? As what is the expected functionality from related list? – Jayant Das Nov 3 '18 at 13:47
2

You can create a Visualforce List view button and then from Visualforce page can call your apex code. Once the execution is complete you can redirect back to List view

enter image description here

Adding Custom List Buttons using Standard List Controllers

Use Visualforce in Lightning Experience

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.