# Freshservice

## Domotz Freshservice Integration

The Domotz Freshservice integration aims to simplify your team's customer support process. The integration enables you to automatically create tickets when an issue happens with any network or critical device you are monitoring. Domotz also updates your Freshservice tickets in real-time, depending on the status of the issue.

## How to set-up the Domotz Freshservice Integration

You can connect your Freshservice Account into Domotz. Freshservice will become one of the Contact Channels available when creating a [Shared Alert](https://help.domotz.com/user-guide/shared-alerts-webhooks-ticketing-systems/). This means that you can create or update a Freshservice ticket when a specific event occurs in Domotz.

You'll need:

- Freshservice Domain Name
- Freshservice API Key ([how to get it](https://support.freshservice.com/support/solutions/articles/50000000306-where-do-i-find-my-api-key-))

Connecting a FreshService Account

1. Enter the FreshService API URL in the provided field.
2. Input your FreshService API Key in the designated field.
3. Click "Save" to connect the account.
4. Use "Cancel" to discard changes.
5. For additional help, refer to the "Domotz Pro User Guide" link.

After the connection with your Freshservice Account is complete you can decide to map your Domotz Agents onto Freshservice Departments. In this way every time a specific Agent generates an alert on the Freshservice contact channel you'll receive a ticket on Freshservice already assigned to a chosen Department (or Customer, depending on the configuration in Freshservice).

**Note:** Please note that the Domotz Agent mapping is not mandatory. If no choice is done tickets will arrive anyway, yet with no Department set.

Mapping Domotz Agents to FreshService Departments.

1. To assign Domotz Agents to specific FreshService Departments, select each agent from the "Domotz Agents List" on the left.
2. View the "FreshService Department" column on the right to choose the corresponding department for each agent.
3. Use the "Sort by Name" option for easier navigation within both lists.
4. You can filter departments using the "Filter by Name" search bar.
5. When done, click the "Close" button at the bottom to save and exit the mapping interface.

Tickets created on Freshservice will contain all the needed information. If a device will trigger an alert and an opened ticket for that device is already present in Freshservice, the new event will be appended to the same ticket.

If you have configured Mandatory Fields in Freshservice for opening new tickets, you will need to specify the default value once the ticket is created through this Domotz integration. You must assign the default values at the time of the configuration for this integration:

FreshService Mandatory Field Selection Form

1. Enter a value in the "Single_line_text_field" by typing "single line."
2. Check the box next to "Checkbox_field" to select it.
3. Input "1111" in the "Number_field."
4. Choose an option from the "Drop_down_field" and select "First Choice."
5. Click the "Connect" button to confirm your selections and proceed.

You can also configure Custom Fields in Freshservice, and require them to be mandatory at the time of ticket creation. In this case, you can use your custom logic which is unique for your own business. More details about creating custom fields in your ticket form [here](https://support.freshservice.com/support/solutions/articles/154126-customizing-ticket-fields#:~:text=In%20Admin%2C%20under%20General%20Settings,Required%20when%20submitting%20the%20form).
