We have requirement to launch a custom modal popup from a related list button, quick action is not available for that object (QuotelineItems). Or is there any way to navigate to LWC modal pop up from Screen flow.
#Flow #Sales Cloud #Salesforce Developer #CRM Configuration #Automation
Hello @Niket Uplenchwar,
To launch a custom modal popup from a related list button in Salesforce, especially for objects where quick action is not available, you can create a Visualforce page that invokes a Lightning Component or a Flow. Here's a general approach to achieve this:
- Create a Visualforce Page: This page will serve as the launcher for your modal popup. You can use the apex:page tag to define the page and include any necessary parameters that your modal will need.
- Develop a Lightning Component: Your Lightning Component will be the content of the modal popup. You can design it to display information, forms, or any other UI elements required for your use case.
- Add the Visualforce Page to the Related List: Navigate to the object's page layout editor and add your Visualforce page to the related list buttons.
- Invoke the Lightning Component from the Visualforce Page: Use Lightning Out to render your Lightning Component within the Visualforce page, which will be displayed as a modal when the button is clicked.
For navigating to an LWC modal popup from a Screen Flow, you can:
- Create an LWC that includes a Flow: Design an LWC that embeds your Screen Flow using the lightning-flow component.
- Use Flow to Handle Record Selection: Configure your Screen Flow to handle record selection and any other logic required before displaying the LWC modal popup.
- Navigate from Flow to LWC: After completing the necessary actions in Flow, navigate to your LWC to display it as a modal popup.
Remember, you'll need to ensure that only users with appropriate permissions can access these features, and you may need to handle navigation and state management between your Flow and LWC carefully.