> ## Documentation Index
> Fetch the complete documentation index at: https://docs.msportal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Link ConnectWise Ticket Emails to MSPortal

> Add a link to ConnectWise ticket emails that opens the same ticket in MSPortal

ConnectWise PSA emails your clients when a ticket is opened, updated or closed. Add a link to those emails so the recipient can open the same ticket in MSPortal, read its updates and reply there. You add the link in ConnectWise, so MSPortal sends nothing new. This guide is for MSP staff who manage ConnectWise email templates.

## How the link works

Every MSPortal ticket can be opened at this address:

```text theme={null}
https://<your portal domain>/tickets?ticket_id=<ticket number>
```

ConnectWise replaces the `[srnumber]` token with the ticket number when it sends the email. Put the token where the ticket number goes:

```text theme={null}
https://app.msportal.ai/tickets?ticket_id=[srnumber]
```

For ticket 48213, the email contains `https://app.msportal.ai/tickets?ticket_id=48213`. Clicking it opens **Tickets** with ticket 48213 already open.

## Before you start

* [Connect ConnectWise Manage](https://docs.msportal.ai/user-guides/integrations/enable-connectwise-integration.md) and sync its tickets to MSPortal. The link opens a ticket only after MSPortal has synced it.
* You need ConnectWise access to edit service board statuses or the **Email Formats** setup table.
* Choose the domain for the link. If your clients sign in on your own domain, such as `portal.yourcompany.com`, use it. Otherwise use `app.msportal.ai`. See [Add a custom domain](https://docs.msportal.ai/user-guides/settings/branding.md#add-a-custom-domain).
* Recipients need an MSPortal sign-in. A client contact sees only the tickets your [company roles](https://docs.msportal.ai/user-guides/getting-started/onboarding/company-roles.md) allow, such as their own requests or every ticket for their company.

## Add the link to a status email

Status emails go out when a ticket on a board moves into a status. Repeat these steps for each status that emails your clients, such as **New**, **Waiting Customer** and **Closed**.

**1. Open the board's statuses**

In ConnectWise PSA, go to **System > Setup Tables > Service Board**. Open the board, then open its **Statuses** tab.

**2. Open the status email**

Open a status that emails clients. Under **Email Template Setup**, check that **External Contact Notifications** is selected. Status emails go to the contacts listed in its email notifications, such as **Contact for this item**.

**3. Switch the editor to Source**

Click **Source** in the email editor's toolbar. Adding the link as HTML keeps `[srnumber]` in the address exactly as typed.

**4. Paste the link**

Paste this where the link should appear, replacing `app.msportal.ai` with your portal domain if you use one:

```html theme={null}
<p>
  <a href="https://app.msportal.ai/tickets?ticket_id=[srnumber]">View ticket #[srnumber] in the portal</a>
</p>
```

**5. Save**

Click **Save HTML Template**, then **Save and Close** the status.

> [!TIP]
>
> If you use the ConnectWise email connector, keep the ticket number in the subject in a format it recognizes, such as `Ticket #[srnumber]/`. That format keeps replies threading onto the ticket. The MSPortal link goes in the body and does not change the subject.

## Add the link for every board

ConnectWise's **Email Formats** setup table holds the default emails used for all boards, such as **Service Email to Customer (Closed Ticket)**.

**1. Open Email Formats**

Go to **System > Setup Tables** and open **Email Formats**.

**2. Open the email type**

Open the entry for the email you want to change. If it does not exist, click **New** and choose it from **Template Types**.

**3. Add the link and save**

Paste the same HTML link into the message, then save.

## Plain-text emails

A plain-text email cannot show link text. Add the address on its own line, and most email apps make it clickable:

```text theme={null}
View this ticket in the portal: https://app.msportal.ai/tickets?ticket_id=[srnumber]
```

## Test the link

**1. Send yourself a status email**

Create a test ticket on the board with yourself as the contact. Select **Internal Contact Notifications** on the status if your contact belongs to your own company. Move the ticket into the status you edited.

**2. Check the address**

Hover over the link in the email. The address should end in `ticket_id=` followed by the ticket number, not the text `[srnumber]`.

**3. Click the link**

**Tickets** opens with the ticket open. If you are signed out, MSPortal asks you to sign in first and then opens the ticket.

## Troubleshooting

| Symptom | What to check |
| - | - |
| The address contains `[srnumber]`, `%5Bsrnumber%5D` or nothing after `ticket_id=` | The token did not get filled in. Add the link again in **Source** view, and type `[srnumber]` in lowercase with square brackets. |
| **Tickets** opens, but no ticket is open | MSPortal has not synced the ticket yet, or the recipient's role cannot see it. Wait for the next ticket sync, see [sync schedules](https://docs.msportal.ai/user-guides/integrations/sync-schedules.md), then try again. For a client contact, check what their [company role](https://docs.msportal.ai/user-guides/getting-started/onboarding/company-roles.md) allows. |
| The recipient sees an access message | Their role cannot view tickets. Give the role ticket access in [Users & Roles](https://docs.msportal.ai/user-guides/settings/users-roles.md). |
| The recipient is asked to sign in on the wrong domain | Use the domain your clients sign in on in the link, then send a new email. Emails already sent keep the old address. |
| No email arrives | ConnectWise did not send it. Check the status's email notifications, and check **Notify on Service Status** on the **Owner** tab of ConnectWise's **My Company** screen. |

## Related guides

* [Configure ConnectWise Manage Integration](https://docs.msportal.ai/user-guides/integrations/enable-connectwise-integration.md)
* [Find and follow up on a ticket](https://docs.msportal.ai/user-guides/ticketing/follow-up-on-a-ticket.md)
* [Branding Settings](https://docs.msportal.ai/user-guides/settings/branding.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.