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

# Notify

> Handles notification of different types.

Handles notification of different types.

## Constructors

### Notify()

```crmscript theme={null}
Notify
```

Initializes a new instance of the Notify class.

## Methods

## sendCustomMessage(Integer,String)

Sends a custom notification to a user.

```crmscript theme={null}
Void sendCustomMessage(Integer recipientId, String message)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## sendCustomMessage(Integer,String,String)

Sends a custom notification message to user with specified URL.

```crmscript theme={null}
Void sendCustomMessage(Integer recipientId, String message, String url)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

<Note>
  URLs with HTTP or HTTPS protocol will open in a new tab. URLs without will be treated as relative and open in the same window.
</Note>

**Example:**

```crmscript theme={null}
Notify notify;
// Send custom notification to user with ID 2, clicking notification should open URL.
notify.sendCustomMessage(2,"Custom notification", "http://www.google.com");
```

## sendNewTicket(Integer)

Sends a notification about a new request according to the user's notify configuration.

```crmscript theme={null}
Void sendNewTicket(Integer ticketId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## sendNewTicket(Integer,Bool)

Sends a notification about a new request according to the user's notify configuration. By setting the parameter skipCategoryMemberNotification, this method will not notify members of the category (if set up) or the email address free-text field on the category.

```crmscript theme={null}
Void sendNewTicket(Integer ticketId, Bool skipCategoryMemberNotification)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## sendNewTicketMessage(Integer,Bool)

Notifies a user about a new message in the specified ticket according to the users notify configuration.

```crmscript theme={null}
Void sendNewTicketMessage(Integer ticketId, Bool onlyToHotLlist)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

<Note>
  If onlyToHotList is set to true, only those who has this ticket in their hotlists will be notified.
</Note>

## sendTicketActivated(Integer)

Sends a notification about a ticket being activated, according to the users notify configuration.

```crmscript theme={null}
Void sendTicketActivated(Integer ticketId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## sendTicketTakenOver(Integer,Integer,Integer)

Sends a notification to the users about a ticket being taken over.

```crmscript theme={null}
Void sendTicketTakenOver(Integer ticketId, Integer oldUserId, Integer newUserId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)


## Related topics

- [Notify Users](/en/api/reference/restful/agent/pocket_agent/notify-users.md)
- [notify table](/en/database/tables/notify.md)
- [Clear Notify](/en/api/reference/restful/agent/ticket_agent/clear-notify.md)
- [Notify New Ticket](/en/api/reference/restful/rest/ticket/notify-new-ticket.md)
- [Webhook_notify table](/en/database/tables/webhook-notify.md)
