> ## 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.

# Saving a request

> CRMScript event model - Saving a request

Every time a ticket is saved, a system script called **Saving a request** will be executed.

You can get the ticket ID by running `getVariable`

## Accessible variables

* ticketId
* activeUser

Furthermore, you can use `getParserVariable` to get out more information regarding the changes done.

The syntax is:

```crmscript theme={null}
getParserVariable("ticket.new.value");

getParserVariable("ticket.old.value");
```

For example, to see if the category has been changed:

```crmscript theme={null}
if (getParserVariable("ticket.new.category") != getParserVariable("ticket.old.category")) {}
```

## Accessible parser variables

* id
* title
* createdAt
* lastChanged
* readByOwner
* readByCustomer
* firstReadByUser
* firstReadByOwner
* activate
* closedAt
* deadline
* timeToClose
* realTimeToClose
* timeToReply
* m\_realTimeToReply
* createdBy
* author
* ownedBy
* category
* slevel
* priority
* status
* ticketStatus
* customer
* alertLevel
* alertTimeout
* connectId
* filterId
* readStatus
* hasAttachment
* displayFilter
* alertStop
* repliedAt
* filterAddress
* dbiAgentId
* dbiKey
* dbiLastModified
* dbiLastSyncronized


## Related topics

- [Saving the quote](/en/api/plugins/quote-connectors/save-quote.md)
- [Create a request](/en/request/learn/create.md)
- [Update app-specific page](/en/developer-portal/standard-app/app-store/update-app-page.md)
- [Relation rules](/en/request/admin/relation-rules.md)
- [SuperOffice.WebApi.Agents.AppointmentAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.AppointmentAgent.md)
- [SuperOffice.WebApi.Agents.IAppointmentAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IAppointmentAgent.md)
