I am facing a challenge with Microsoft Power Automate with the usage of the "Post Adaptive Card and Wait for a Response" action within Microsoft Teams.
We have implemented Power Automate to automate a critical process within Microsoft Teams. The automation flow involves sending an adaptive card and Wait for a Response action inside a chat group to gather input from the group members. This process is embedded within a loop "Apply to each" that allows us to retrieve multiple responses from different members of the group.
While this setup has proven effective in facilitating communication and data collection, we have encountered an issue related to stopping the flow when needed. Once the adaptive card is posted and the Wait for a Response action is triggered, we have not been able to find a reliable way to terminate the flow under certain circumstances.
Our primary concern is that during holidays and weekends, when group members may not be available to respond, the flow continues to run indefinitely. Consequently, this leads to numerous flow instances being active without receiving the required responses, leading to inefficiencies and resource utilization concerns.
We have attempted various approaches, including setting multiple conditions before and after the "Post Adaptive Card and Wait for a Response" action to manage the flow execution. Unfortunately, it appears that the action itself imposes limitations on the flow's termination process.
How we can address this situation effectively? Our goal is to ensure that the flow can be stopped gracefully, regardless of whether a response is received for the adaptive card.
I am using Schedule trigger flow, its run every day at a specific time.
Are there alternative methods or best practices available to handle this scenario?
I tried to Create another flow that would terminate that flow, but I didn't find a way to so so.
I used Terminate action but its not reached once the post adaptive card is sent to the group!