Outbound Power Automate Flows for TeamsWork Ticketing

Outbound Power Automate flows let ticket events in TeamsWork Ticketing start work in other apps, so approvals, escalations and follow-ups happen on their own. Each flow reacts to a ticket being created, changing status, breaching an SLA or getting resolved, and then takes the next step in Microsoft Teams, Approvals, SharePoint, Planner or Outlook.

This post walks through five outbound flows built with the TeamsWork Ticketing connector for Power Automate, without writing code. Each flow includes the trigger, the steps and the outcome, so you can build it in your own tenant today. To bring requests into Ticketing from forms, Teams messages and schedules, read inbound Power Automate flows for TeamsWork Ticketing.

Before you start

You need a TeamsWork Ticketing connection in Power Automate before you build these flows. Licensing, API keys and connection setup are covered in the TeamsWork Ticketing Power Automate Connector: Getting Started guide. The connector is a premium connector, so you also need a Power Automate Premium licence. Flows 1 to 4 change tickets, so they need the read-write API key, while flow 5 only uses a trigger and works with the read-only key.

Five outbound flows to build

These flows react to ticket events and start the next step in another app, so nobody on your team has to remember to do it by hand.

Several flows below use a trigger condition, so they only run for the right tickets. To add one, select the trigger, open Settings, and under Trigger conditions select Add, then paste the expression.

1. Escalate SLA breaches in Teams

Outcome: when a ticket misses its first-response target, the team sees it straight away and someone can claim it from the message. It builds on the SLA escalation settings in Ticketing.

  1. Trigger: When the first response SLA is breached (TeamsWork Ticketing). For resolution deadlines, use When the resolution SLA is breached instead, which works the same way and is the trigger shown in the screenshot below.
  2. Action: Post adaptive card and wait for a response (Microsoft Teams). Post to your support channel with the Ticket No., Title, Requestor name and Ticket URL. To add a "Take it" button, design the card in Microsoft's Adaptive Cards Designer with a submit button and paste the card JSON into the action.
Power Automate Post adaptive card and wait for a response action with Ticket No, Title, Requestor name and Ticket URL
  1. Action: Set ticket assignee (TeamsWork Ticketing). Use the trigger's Ticket ID and the email of the person who selected the button on the card.
Power Automate Set ticket assignee action from the TeamsWork Ticketing connector
  1. Action: Add a comment to a ticket (TeamsWork Ticketing), with Private set to Yes, to record the escalation in the ticket history.
Power Automate Add a comment to a ticket action with Private set to Yes

2. Approve requests with Teams Approvals

Outcome: requests that need sign-off, such as leave, equipment or access, get a real approval in Teams and Outlook, and the decision is written back to the ticket.

Prerequisite: add the "Pending approval", "Approved" and "Rejected" statuses to your Ticketing workflow.

  1. Trigger: When a ticket status changes (TeamsWork Ticketing). Add a trigger condition so it runs only when the new status is your approval status, for example:
@equals(triggerBody()?['data']?['status']?['to'], 'Pending approval')
Trigger condition on When a ticket status changes that filters for the Pending approval status
  1. Action: Start and wait for an approval (Approvals). Assign it to the ticket's "Manager" custom field, which the inbound manager flow fills in, and include the ticket title, description and Ticket URL.
Power Automate Start and wait for an approval action assigned to the ticket Manager custom field
  1. Condition: check whether the outcome is Approve.

    • Yes: Set ticket status (TeamsWork Ticketing) to "Approved", with the approver's comments as the status comment.
Set ticket status action that marks the ticket as Approved with the approver comments
  • No: Set ticket status to "Rejected", with the approver's comments.
Set ticket status action that marks the ticket as Rejected with the approver comments

3. Save ticket attachments to SharePoint

Outcome: files shared on tickets, such as contracts, invoices and screenshots, are also stored in a SharePoint library and organized by ticket number for records and search.

  1. Trigger: When a ticket attachment is added (TeamsWork Ticketing). Add a trigger condition to skip links:
@equals(triggerBody()?['data']?['attachment']?['isHyperlink'], false)
Trigger condition on When a ticket attachment is added that skips hyperlink attachments
  1. Action: Get attachment content (TeamsWork Ticketing), with the trigger's Ticket ID and Attachment ID.
Power Automate Get attachment content action with Ticket ID and Attachment ID
  1. Action: Create file (SharePoint). Set the folder path to your library plus the Ticket No., and take the file name and content from Get attachment content.
SharePoint Create file action that saves the ticket attachment in a folder named after the Ticket No

Note: Get attachment content downloads files up to 25 MiB.

4. Create onboarding tasks in Planner

Outcome: one "New hire" ticket gives IT, Facilities and HR their own tasks on the onboarding plan, and every task stays traceable to the ticket.

  1. Trigger: When a ticket is created (TeamsWork Ticketing). Add a trigger condition on the category, for example:
@equals(triggerBody()?['data']?['ticket']?['category'], 'New hire')
Trigger condition on When a ticket is created that filters for the New hire category
  1. Actions: Create a task (Planner), once per team, each titled with the Ticket No. and a ticket detail that tells the team who the task is for.
Planner Create a task actions for the IT, Facilities and HR onboarding tasks
  1. Action: Add a comment to a ticket (TeamsWork Ticketing), listing the tasks created.
Add a comment to a ticket action that lists the Planner tasks created for the new hire

5. Follow up with the requestor on resolution

Outcome: every requestor gets a clear resolution summary and a quick way to rate the service.

  1. Trigger: When a ticket is resolved (TeamsWork Ticketing).
  2. Action: Send an email (V2) (Office 365 Outlook) to the trigger's Requestor email, including the Title, Resolution, Ticket URL and a link to a Microsoft Forms satisfaction survey.
Office 365 Outlook connection setup for the Send an email (V2) action after a ticket is resolved
Send an email (V2) action with the ticket Title, Resolution, Ticket URL and survey link

To store the score on the ticket, ask for the Ticket No. in the survey. Then build a second flow that runs on each survey response, finds the ticket with Get a ticket by number, and saves the score to a custom field with Update a ticket.

Tip: trigger condition expressions depend on the field names the connector returns, so test each one in your tenant before you rely on it.

Ready to build? Read the TeamsWork Ticketing Power Automate Connector: Getting Started guide for setup and the full list of triggers and actions, and pair these flows with the inbound Power Automate flows for TeamsWork Ticketing to cover both directions.

Power Automate integration is available on the Professional plan and above. If you do not have Ticketing as a Service yet, try it for free.

Try Ticketing as a Service for free


Still switching tabs to get things done? TeamsWork brings your business apps into Microsoft Teams — Ticketing, CRM, Checklist, and Billing — so support, sales, and tasks all live where your team already works. Microsoft Solutions Partner certified, trusted by 500+ organizations.