How to call Flow from related list Button in Salesforce Lightning?

1. Create a Flow.

2. Get the Flow URL.

3. Create a List Button with URL and use the Flow URL.


4. Add the List Button to the related list in the Parent object page layout.


Output:


11 comments:

  1. can we pass parameter/attribute to flow from the related list?
    And can the flow is not rendering properly. Any way to define that.

    ReplyDelete
    Replies
    1. Yes. Check this - https://help.salesforce.com/articleView?id=flow_distribute_internal_url_variable.htm&type=5

      Delete
  2. can we call LC/LWC from list button.

    ReplyDelete
    Replies
    1. No. Vote for this idea - https://trailblazer.salesforce.com/ideaView?id=0873A0000003TXFQA2

      Delete
  3. this is not working in lightning Community. is there any other additional step which we need to perform?

    ReplyDelete
  4. How do you selected record Ids to flow?

    ReplyDelete
    Replies
    1. You can pass values from the current record - https://help.salesforce.com/articleView?id=sf.flow_distribute_internal_url_variable.htm&type=5

      Delete
  5. how did you add a custom button to a related list? I only see options to add standard buttons?

    ReplyDelete
    Replies
    1. Create a List Button with URL and use the Flow URL. Add it to the Page Layout.

      Delete
    2. You also have to make sure you add the new button in Search Layouts. Go to the Object Manager for the related list object > Search Layouts > Under Custom Buttons move your button from available buttons to selected buttons.

      Delete