---
title: "Create Perspectium Inserts ServiceNow Dispatch'r rule"
canonical: "https://docs.perspectium.com/space/helium/2122671/Create%20Perspectium%20Inserts%20ServiceNow%20Dispatch'r%20rule"
format: markdown
---
The **Perspectium Inserts ServiceNow Dispatch'r rule** will enable the sharing of newly created Freshdesk tickets to your ServiceNow instance. [Learn more about Freshdesk Dispatch'r.](https://support.freshdesk.com/support/solutions/articles/37614-managing-tickets-using-the-dispatch-r)

## **Prerequisites**

---

:warning: You must have the Freshdesk **Admin** role to complete the procedure described below.

:warning: You will first need to [create custom Freshdesk ticket fields](https://docs-perspectium.atlassian.net/wiki/spaces/helium/pages/2122635).

## **Procedure**

---

To create custom the Perspectium Inserts ServiceNow Dispatch'r rule, follow these steps:

**1.** Log into Freshdesk and navigate to > Macro (inline-media-image)

 **Admin** > **Dispatch'r** (under **Helpdesk Productivity**).

**2.** In the upper right-hand corner of the **Dispatch'r Rules** screen, click **New Rule**.

**3.** In the resulting form, type **Perspectium Inserts ServiceNow** for the **Rule Name**. 

**4.** Under **Conditions**, choose the **Match ALL of the below** option and make sure that the > Macro (inline-media-image)

 **(ticket)** option is selected. Then, from the dropdowns, select **Type** > **is** and type/select **Incident** in the the textbox. 

**5.** Click :plus: **Add new condition**. From the dropdowns, select **Updated Via** > **is** and type/select **Freshdesk** and **None**.

**6.** Under **Actions**, select **Trigger Webhook** from the dropdown and select **POST** as the **Request Type**. For **Callback URL**, type **http://**<span style="color: #a5adba">**<your Perspectium MBS URL>**</span>**/siam/CreateIncident?instance=**<span style="color: #a5adba">**<your ServiceNow instance>**</span>**&provider=freshdesk**. Finally, check the **Requires Authentication** box and type the username and password for your Perspectium MBS.

**7.** Next to **Encoding**, select **JSON** and **Advanced**. Then, add the following script within the scripting window:

|  |
| --- |
| `{ `  
`    'id':'{{ticket.id}}',`  
`    'subject':'{{ticket.subject}}',`  
`    'description':'{{ticket.description_text}}',`  
`    'status':'{{ticket.status}}',`  
`    'priority':'{{ticket.priority}}',`  
`    'custom_fields':{ `  
`        'cf_correlation_id':'{{ticket.cf_correlation_id}}'`  
`    }`  
`}` |


**8.** Click :plus: **Add new action**. From the dropdowns, select **Set Updated Via as** > **Freshdesk**. 

**9.** At the bottom right-hand corner of the screen, click **Save** to finish creating the Dispatch'r rule.


## **Next steps**

---

[Create Perspectium Inserts from ServiceNow Dispatch'r rule](https://docs-perspectium.atlassian.net/wiki/spaces/helium/pages/2122673)