Getting Started with DeskDirector
DeskDirector Portals
Browser Support
What is the DeskDirector Admin Portal?
What is the DeskDirector Tech Portal
What is the DeskDirector Client Portal?
Desktop Portal
Managing Your Account
Admin Essentials
DeskDirector Features Overview
Logging in to DeskDirector
User Profiles & Profile Pictures
Managing Tickets with DeskDirector
Office Hours
Getting Started with the Solution Library
How Searching Works
Embedding Help Page Media
Get started with the DeskDirector Power Automate Connector
Features
Portal Customization
Forms
Service Catalogue
Communication
Email Connectors
Notifications
Email Notifications
Actionable Messages for Emails
Real-Time Chats
Email Template Engine
Surveys
Broadcasts
Generative AI
DeskDirector with Generative AI
Ticket Summary for TECH Portal
Setting up AI Service Providers
Microsoft Foundry for DeskDirector
Knowledge Bases for AI Assistants
Custom Tools for AI Assistants
AI Assistants in DeskDirector
Advanced
Login & Authentication
Contact Groups
Custom Domains
File Storage
Dashboard
Accounts
Contacts
Approvals
Tags
Task Lists
The Learning Center
Portal Deep Linking
Auditing & Analytics
Microsoft Power Automate
Actions
Solutions
Featured Solution: Teams Ticket Discussion
Power Automate Template Gallery
Featured Solution: Ticket Briefing
Power Automate Administration
DeskDirector Power Platform Connector Reference
Power Automate Connector - Setting up your first flow
Microsoft Teams App
Introducing the DeskDirector for Microsoft Team App
Installing the Microsoft Teams App (Client Mode)
Installing the Microsoft Teams App (TECH Mode)
Setting up Tags for Teams Discussions (TECH Portal)
Branding the DeskDirector Teams App
DeskDirector Teams App Notifications
Contact Groups Integration with Microsoft Teams
Setting up Content Security Policy (CSP)
Advanced topic: Setting up Tech & Client Mode in the same tenancy
Integrating Microsoft Teams with DeskDirector Tech Portal
Smart Alerts for TECH Users
Integrations
Developer Resources
Getting Started
What is the Toki Iti API
API Versions & Routes
Roles & Scopes
Authorization Options
Querying the API
How to Change an Entity Through the API
API Key Authorization
OAuth Fundamentals
Understanding OAuth for Tokity Integrations: Key Concepts
OAuth Authorization Code Flow: How an App Gets Access to Tokity
OAuth App Registration
How to Register an OAuth App to Integrate with Tokity
Choosing an OAuth App Type: Confidential vs. Public Apps and Client Secrets
OAuth Personal Secrets: What They Are and When to Use Them
OAuth Administration
Configuring OAuth Settings in Tokity
Managing OAuth Authorized Sessions and User Consent
Granting OAuth Admin Consent at the Root Level
API Response Control
Uploading Attachments (Ticket API)
The Prefer Header — Overview
Controlling Returned Data (Ticket API)
Controlling Returned Data (Form Result API)
Controlling Returned Data (Workspace API)
Workspace Ordering
How Workspace Ordering Works
Creating and Reordering Workspace Groups
Adding and Reordering Tickets in a Workspace Group
Data Sync & Notifications
Delta API: Tracking Changes Over Time
Webhooks vs. Events — Differences, When to Use Which
Verifying Webhook and Event Payloads (HMAC Signature)
Ticket Widgets
Ticket Widget: Overview
How the Widget Is Requested
Ticket Widget Anatomy and Styling
Ticket Widget Actions: Leading, Secondary and Primary
Ticket Widget: Progress Type
Ticket Widget: List Type
Ticket Widget: Description Type
Ticket Widget: Form Type
Ticket Widget: Control When a Widget Refreshes
Ticket Widget: Form Results and State Across Steps
Ticket Widget: Error Responses and Debugging
Ticket Widget: Building a Multi-Step Request
Glossary
Security
Troubleshooting
Troubleshooting via Web Developer Tools
Permissions & Access - Common Issues
Contact DeskDirector Support
Troubleshooting DeskDirector Connection Issues
Desktop Portal - Common Issues
Contact Impersonation
Approvals - Common Issues
Microsoft Teams App - Common Issues
Email & Email Delivery - Common Issues
Login & Authentication - Common Issues
DeskDirector Desktop App - Installation Issues
Table of Contents
- All Categories
- Microsoft Power Automate
- Actions
- Action: Create an email from template
Action: Create an email from template
Updated
by Niamh Ferns
Templated Email Flow
This article explores the "Create an email from template" action from our Power Automate Connector.

Intro
This action generates HTML for an email body based on a chosen template from the "Flow template" section in your DeskDirector admin console. It does not have any send functionality, so it needs to be used in tandem with a send action from another connector, e.g, Outlook.
The advantages of using this action are:
- Styling: You can easily craft good-looking, responsive emails instead of sending plain HTML. If you've used Outlook's "Send an email" action in Power Automate, you are likely sending emails without any styling. It is possible to add inline styling, but this is hard to do within the small text box.
- Dynamic Content: You can leverage Liquid template language to process input tokens or customise email content before sending.
See these related articles if you are unfamiliar with our email template engine.
Usage
- In the Admin Portal, have an existing custom email template in the "Flow template" section. If your template is not in this section, it will not appear in the Power Automate action.

- In Power Automate, add the "Create an email from template" action and select your template from the dropdown.
- If your template has any custom tokens, they will appear as inputs so you can enter values for them.
- Use a send action from another connector e.g Office 365 Outlook - Send an email. For the email body, select the output of "Create an email from template". If you are using the Outlook action, switch the body input to Code View (</> button).
- Your flow should look like the following. ContactName is a custom token specified in the template.

Implementation Example
In this example, we will be extending the "Unassigned open tickets digest" flow to use a custom email template. The flow template can be downloaded from our Template Gallery.
Create the email template
Firstly, create the email template we have prepared. There are two ways to do this:
- Import via your DeskDirector instance's Swagger UI
- Navigate to
https://{subdomain}.deskdirector.com/swagger - Find this API under v3, Email Templates:
POST /api/v3/email/types/{type}/templates. You won't need an API key if you are already logged in to your instance as an admin. - Enter the following:
- type: dynamic
- req: paste the contents of this file: UnassignedTicketsDigestEmail.json
- Parameter content type: application/json
- Press Try it out! button. This will create the email template in your instance.
- Navigate to
- Or, manually create the template
- Create a new custom template under the Flow template section. Call it "Unassigned Tickets Digest Email Template"
- In the Code tab, replace the sample code with the contents of this file: UnassignedTicketsDigestEmailMjml.txt
- There will be some errors because some tokens have not been created yet. In the Tokens tab, create three custom tokens:
- totalCount: number. Sample: 50
- resultsCount: number. Sample: 20
- htmlTableString: string. Sample: <table><tr><th>col1</th><th>col2</th></tr></table>
- The template should now be error-free, save
The template is now ready to use in Power Automate.
Use in Power Automate Flow
- Add the Create an email from template action between Create HTML table and Send an email (V2) actions.
- Configure the Create an email from template action:
- Template: select the template we just created: Unassigned Tickets Digest Email Template
- totalCount: total from Find tickets
- resultsCount: resultsCount from Find tickets
- htmlTableString: Output from Create HTML table
- Configure the Send an email (V2) action:
- Body
- Delete all existing content
- Switch to Code View, </> button
- Content from Create an email from template
- Body
- The final result will look like the following image. Run the flow to see the email template in action.
