function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jeff BomarJeff Bomar 

Is it possible to create a button to start a flow

Hello everyone. I created a flow today using the flow builder flowId=30129000000ULTsAAO and added the flow to the lightning page layout. My question is there a way to instead of adding the flow to the page layout could you add a button to the page layout instead to execute the flow see the image I am gathering two pieces of information
User-added image 
Best Answer chosen by Jeff Bomar
SUCHARITA MONDALSUCHARITA MONDAL

Hi Jeff,

Yes, you can create 'Actions' and call your flow using that button. Please find the article for the same

https://help.salesforce.com/articleView?id=flow_distribute_internal_action.htm&type=5

 

Hope this helps!
Thanks,
Sucharita

All Answers

SUCHARITA MONDALSUCHARITA MONDAL

Hi Jeff,

Yes, you can create 'Actions' and call your flow using that button. Please find the article for the same

https://help.salesforce.com/articleView?id=flow_distribute_internal_action.htm&type=5

 

Hope this helps!
Thanks,
Sucharita

This was selected as the best answer
Maharajan CMaharajan C
Hi Jeff,

You can call the Flow URL in custom detail page button.

Please refer the below blogs:
https://trailhead.salesforce.com/en/content/learn/v/projects/flow_calculate/flow_calculate_implement
https://douglascayers.com/2016/09/25/how-to-run-flow-from-page-button-in-lightning-experience/
https://trailblazers.salesforce.com/answers?id=9063A000000peWxQAI

if it is a not autolaunch flow i think you can use the Quick Action also.
https://www.simplysfdc.com/2018/03/salesforce-call-flow-from-action.html
https://trailhead.salesforce.com/en/content/learn/modules/screen_flow_distribution/screen_flow_distribution_action
https://help.salesforce.com/articleView?id=flow_distribute_internal_action.htm&type=5

Thanks,
Maharajan.C
Jeff BomarJeff Bomar
Thanks, everyone for the quick response I have created the flow and it works, however, I can't figure out how to get it to work by adding it as a button or action when I add the flow to the page it works but I don't like how the collections of inputs are on the screen when I add the flow to the screen I can pass in the record ID of the record I am on but an action or a button I cant figure out how to pass in the record ID 
User-added image
Jeff BomarJeff Bomar
Was able to get the button working thanks everyone for the help