Call JavaScript Directly from Your Flow with Local Actions (Pilot)

Pull data from an on-premises or private cloud database directly into your flow without going through the Salesforce server. Or do things directly in the browser, such as open a particular URL or confirm that a record was created with a toast message. With flow local actions, you can call the JavaScript controller of an associated Lightning component, which means you can integrate directly with the browser. This feature is new in both Lightning Experience and Salesforce Classic. However, it’s supported only in Lightning flow runtime.
Note

Note

We provide Flow Local Actions to selected customers through a pilot program that requires agreement to specific terms and conditions. To be nominated to participate in the program, contact Salesforce. Pilot programs are subject to change, and we can’t guarantee acceptance. Flow Local Actions isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. We can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features. You can provide feedback and suggestions for Flow Local Actions in the IdeaExchange.

When you create a Lightning component that implements the flowruntime:availableForFlowLocalActions interface, the component appears in the Cloud Flow Designer’s palette. When a flow executes a local action, it calls the invoke method in the component’s JavaScript controller. To return control to the flow, in the invoke method use the callback function that’s provided by the interface.