# Zoho Desk via Zoho Flow

[<mark style="color:blue;">Zoho Desk</mark>](https://www.zoho.com/desk/) is a cloud-based help desk solution from Zoho Corporation, catering to businesses of all sizes. Key features include the management of customer support tickets, a customer support portal, contract management, and report creation.

Route detailed alerts from Zoho Desk to the right users in Squadcast.

### Using Zoho Desk via Zoho Flow as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-4fbd74e7ca0b30173c47a1d58ed6a0804a0465aa%2FAlert_Sources.png?alt=media\&token=aaca6610-9d18-4dd4-9cf5-320042f326f1)

2\. Select **Zoho Desk via Zoho Flow.** Copy the displayed **Webhook URL** to [configure](#create-a-squadcast-webhook-workflow-for-zoho-desk-via-zoho-flow) it within **Zoho Desk via Zoho Flow.** Finish by clicking **Add Alert Source** -> **Done.**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-d3ec38876facb284da9467b3fca9fcaea7189332%2FZoho%20Desk%20via%20Zoho%20Flow.png?alt=media)

{% hint style="warning" %}
**Important:**

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

### Create a Squadcast Webhook Workflow for Zoho Desk via Zoho Flow

**(1)** Login to your **Zoho Flow** dashboard and naviagte to the **BUILDER**. Under **APPS**, select **Zoho Desk** and click on **Create ticket** to drag it on the workflow builder

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-9009f671e9aa5f58ceabaac817797ea7d116332d%2Fzoho_desk_new_2.png?alt=media)

**(2)** Navigate to **LOGIC**. Under **Custom Functions**, click on **+ Custom Function**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-2cda123ee8c21de6019e7c53cda915fa2b37aa51%2Fzoho_desk_new_3.png?alt=media)

**(3)** Fill **SquadcastTicketCreation** as **Function Name**, select **Return Type** as **void - Returns nothing** and click on **CREATE**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-97c876f8ba287b039699a55c2c5baaf24fcf65bd%2Fzoho_desk_new_4.png?alt=media)

**(4)** Paste the code snippet mentioned below inside the code box. Replace the **SQUADCAST-WEBHOOK-URL** placeholder with the previously copied Squadcast Webhook URL. Then click on **SAVE**

```json
void SquadcastTicketCreation(string subject, string ticketid, string statustype, string description, string weburl, string language, string priority, string duedate, string classification)
{
    data = Map();
    data.put("subject",subject);
    data.put("ticketid",ticketid);
    data.put("description",description);
    data.put("weburl",weburl);
    data.put("language",language);
    data.put("priority",priority);
    data.put("duedate",duedate);
    data.put("statustype",statustype);
    data.put("classification",classification);
    response = invokeurl
    [
        url :"<SQUADCAST-WEBHOOK-URL>"
        type :POST
        parameters:data
    ];
}
```

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-c06cd58b264e8470c5cfa97db1d9d9e3786fa138%2Fzoho_desk_new_5.png?alt=media)

**(5)** Connect **Create ticket** to the custom fucntion that was created in the previous step. Then select the appropriate values under the boxes as shown in the image below.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-a7926c8abe60ef2af41791bbc2b8cfd1d47c0479%2Fzoho_desk_new_6.png?alt=media)

**(6)** Toggle the Flow switch to **ON**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-62e91c189cd4d7a42b7f1634b07142dc7dee5e21%2Fzoho_desk_new_7.png?alt=media)

That's it, you are good to go! Your Zoho Desk via Zoho Flow integration is now complete. Whenever user creates a ticket on Zoho Desk, an incident will be created in Squadcast for it.

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*
