Route Teams commands based on state
Recipe Tools
What it does
When someone runs the actioncommand in Teams, this automation checks whether a state exists. If the state is not present, it posts a reply in Teams and logs the outcome to the job report.
Who it's for
Operations teams who need to validate state before processing Teams commands.
How teams use this
Prevent commands without required state
Run the actioncommand only when state is present, and notify someone in Teams if it is missing. The team avoids partial or failed executions.
Audit all command attempts
Log every actioncommand to the job report whether it succeeds or fails. Finance and compliance teams can review the audit trail.
Add a retry button for missing state
Include a button in the Teams reply so someone can retry the actioncommand after providing the missing state. This reduces back-and-forth messages.
How it works
- Listen for the actioncommand. Someone runs the actioncommand in Teams, and the automation receives the request in real-time.
- Check if state is present. Evaluate whether the state from Step 1 exists. If not present, proceed to post a reply in Teams.
- Post reply in Teams. Send a message back to the Teams channel so someone knows the state was not found and the command did not proceed.
- Log the result. Record the outcome to the job report so the team has a record of which commands ran and which were blocked.