March 5, 2020

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:


8 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