I have a screen flow that includes a Managed LWC (Product Configurator Flow in RLM - Revenue Cloud). One of the Managed LWCs contains a button labeled "Save & Exit." When clicked, this button performs its default functionality.
I need to extend/customize this flow while preserving its default behavior. To achieve this, I added an Apex action after the screen element for my custom requirement. However, I encountered an issue—when clicking the "Save & Exit" button, the entire flow terminates, preventing the Apex action from executing.
The only way I see to resolve this is by passing an event from the "Save & Exit" button in the managed LWC to my custom LWC, from where I can resume the customized flow. However, since I don't have access to modify the managed component directly, I’m struggling to capture the click event from the button and pass it to my custom LWC. I’ve tried different approaches, but nothing has worked so far.
Could you please help me with this?
#LWC #Screen Flow #Salesforce Developer #Revenue Cloud
If the managed component dispatch events upon button clicks go through the documentation use how you can listen for events it dispatches:
https://developer.salesforce.com/docs/platform/lwc/guide/events-propagation.html