An email template in Email Designer connects one or more Altru queries to an email. Click Create template, give it a name, choose the email type, and paste your query’s OData link. Then tell Email Designer which column is the email address, set the grouping key to the system record ID so each sales order gets one email, pick the note type to attach in Altru, add your sender details and subject, and click Create template.
Before you start: have your Altru query and its OData link ready, plus the note type you’ll use and the from name, from address and reply-to address. Any extra column you add to the query becomes a field you can use inside the email (0:45).
Steps
- Create the template (0:04). Open Email Designer and click Create template.
- Name it (0:14). The example is Tickets sold today; use any name you like.
- Choose the email type (0:25). This one is a transaction email. Transaction emails send only once, which suits online purchase receipts and custom welcome messages for an online purchase.
- Add the OData link (0:40). Copy the OData link from your Altru query, click Add OData link, paste it and click Next. It’s fine if no items are found yet (no tickets sold today in the demo). Add more OData links if you have more queries, then click Next.
- Review the mapped fields (1:42). Email Designer lists the fields it found in your query and how they map, which is how you’ll use them in the email.
- Pick the email address and grouping key (2:07). Select the email address field. For the grouping key, select system record ID. This groups the duplicate rows that belong to the same sales order into one item, so one sales order doesn’t trigger several emails.
- Skip grouping fields and merging keys unless you need them (2:36). The demo doesn’t group anything besides the sales orders or merge rows into columns, so it clicks Next twice.
- Choose the note type (2:56). This attaches each email to the sales order’s Documentation tab in Altru. The demo uses Email receipt.
- Sender details (3:13). Enter the from address, from name (your organization) and reply-to. Leave CC and BCC empty unless you need them.
- Subject (3:37). For example, Your tickets. Review the summary of how everything maps.
- Click Create template (3:52).
The new template has four tabs (4:03): the visual designer for the email itself, Preview to preview emails, Activity for processed emails and data downloads, and Settings to configure the email.
Common questions
Why set the grouping key to the system record ID?
A sales order with several tickets returns several rows. Grouping on the system record ID treats them as one item, so the buyer gets one email instead of one per row.
Can I use query columns inside the email?
Yes. Add extra columns to your Altru query and they become fields you can use in the email.
What does the note type do?
It attaches a copy of each sent email to the sales order’s Documentation tab in Altru, so staff can see what went out.
Is there a ready-made eTicket email to start from?
Yes. See the eTicket email template for Altru.
Video transcript
We’ll click into the Email Designer app. It asks us to create an email template, so we’ll click Create template. It asks for a name. I already have one for this template, which is just “Tickets sold today”. You’re welcome to name your template anything you like.
Next it prompts us for the type. This is a transaction email. Transaction emails are only sent once, and they’re great for online purchase receipts or custom welcome messages about an online purchase. So that’s the option we’ll pick.
Here we need to add an OData link. A couple of side notes: you can add optional fields to use as inline variables in your email. Just add extra columns to the query and they’ll be available for you to use. Like I mentioned before, if we look at our query, you’ll see all of our columns, and these are the columns we’ll be able to use in the email.
I’ll click on the OData link and copy it, head back to Email Designer, click Add OData link, paste the link in, and click Next. Right now it’s not finding any items, which is okay, because we haven’t sold any tickets today. I’ll click Next one more time. It then gives me a prompt: if you have more OData links to add, just click Add OData link and keep adding them. I only have one query so far, so that’s the one we’ll use.
Then it tells us it found 10 fields from the OData links we provided and asks us to review them. You can see how things get mapped for your email, and this is how you can use them inside the email itself.
Next it asks a few questions about the email configuration. The first is the email address, so we select the email address field. For the grouping key, it’s really important that you select system record ID, because this lets us group all the duplicates in the query that belong to the same sales order into one item, instead of having multiple emails go out for the same sales order. So it’s really important to select system record ID here.
Then you’re prompted to select any fields you want to group together. In our example we’re not grouping anything besides the sales orders themselves, so I’ll click Next. Merging keys are for merging rows into columns, and we’re not using that feature right now, so we’ll click Next.
Here’s our note type. Like I mentioned before, we created this note type, and it lets you attach emails to your sales order’s Documentation tab. You simply select the right note type for this email, and we’ll select “Email receipt” for this one.
Then it asks for our from address. Like I said, we prepared it already, so we have it handy. The from name we have too; that’s just our organization. And the reply-to, we have that email handy as well. We don’t want to CC or BCC anyone on this email. Now we need a subject, and I’ll use something like “Your tickets”. Here you can see how everything gets mapped, the from name, addresses and so on. I’m happy with it so far, so I’ll click Create template, and that creates a template called “Tickets sold today”.
If we take a quick peek at the template, you’ll see we have a visual designer, which is what we’re looking at now. We have a Preview tab where we can preview any emails. We have an Activity tab where you can see any activity, such as processed emails or data downloads. And finally, Settings is where you configure the settings for the email.
