Hi, I’m working with Modern UiPath and I need to handle recurring popups that can appear at any point during my main workflow.
I’ve tried several approaches:
- Sequential Trigger Scope to listen for the popup and close it.
- Result: the workflow gets stuck in the Trigger Scope and never continues to the next activities.
- Parallel approach:
- Branch 1 → main workflow
- Branch 2 → Trigger Scope for the popup
- Result: even when the main workflow finishes, the Trigger Scope branch stays active, and Stop Trigger or boolean variables do not stop it properly.
- Tried using a boolean control variable to conditionally activate the Trigger Scope.
- Result: it does not stop execution if the Trigger Scope is already listening.
- Tried Stop Trigger, targeting the Trigger Scope, with
ShouldStop = True.
- Result: the Trigger Scope still blocks execution or does not stop as expected.
- Modern Trigger Scope does not have a Timeout property, so I cannot limit its listening duration.
What I need to know:
- What is the correct way to use Modern Trigger Scope to handle recurring popups without blocking the main workflow?
- Is using a Parallel structure mandatory for the main workflow to continue?
- How can I properly stop the Trigger Scope when I no longer want to listen to events (using Stop Trigger or a boolean variable)?
- Are there any recommended strategies to combine Trigger Scope + main workflow in Modern Activities without the robot getting stuck?
