Procedures
Automation procedures in the Zendesk book.
Ensure that you have installed or connected the Zendesk book and created a new playground before using these automation procedures.
to add a comment to a (ticket)
Adds a comment to an existing ticket in Zendesk with an optional single file attachment.
Note: If the attachment is specified, it must include the attachment_name with extension.
Input Concepts
Output Concepts
Examples
Add a simple comment
the ticket # Assume we already have a ticket concept in the KLang
create a json
use the above as the comment
the comment's body is "This is a test comment"
add the comment to the ticketAdd a comment with an attachment
to create a (ticket) in zendesk
Creates a new ticket in Zendesk with the specified properties.
Input Concepts
The ticket to be created in Zendesk, represented as a ZendeskTicket concept.
zendesk ticket
Yes
(no default)
Output Concepts
Examples
Create a Ticket
to delete a ticket in zendesk
Deletes a specified ticket in Zendesk.
Input Concepts
Examples
Delete a ticket
to download an (attachment)
Downloads an attachment from Zendesk.
Input Concepts
Output Concepts
attachment
A file-like object (BytesIO) containing the attachment content.
file
Examples
Download an attachment from a comment
to get a (ticket) in zendesk
Retrieves a specific ticket from Zendesk by its ID using direct API access.
This method uses the direct ticket API (not search) so it works immediately after ticket creation without waiting for search index updates.
Input Concepts
ticket id
The ID of the ticket to retrieve.
number
Yes
(no default)
Output Concepts
Examples
Get a ticket
to get a (user) in zendesk
Retrieves a specific user from Zendesk by their ID.
Input Concepts
user id
The ID of the user to retrieve.
number
Yes
(no default)
Output Concepts
Examples
Get a user
to get some (ticket's audits) in zendesk
Retrieves all audits for a specific ticket in Zendesk.
Input Concepts
Output Concepts
Examples
Get audits for a ticket
to get some (ticket's comments) in zendesk
Retrieves all comments for a specific ticket in Zendesk.
Input Concepts
Output Concepts
A list of ZendeskComment objects representing the retrieved comments.
zendesk comment
Examples
Get comments for a ticket
to get some (users) in zendesk
Retrieves users from Zendesk using search functionality with optional filter expressions.
Input Concepts
offset
Number of results to skip for pagination. Default is 0.
number
No
(no default)
limit
Maximum number of users to return. Default is 10.
number
No
(no default)
Output Concepts
Examples
Get all users
Get users with filter expression
Get users with pagination
to get ticket fields in zendesk
Retrieves all available ticket field definitions from Zendesk.
This method can be used to resolve the fields and custom fields information.
Output Concepts
A list of Zendesk Ticket fields representing all available fields and custom fields.
zendesk ticket field
Examples
Get all ticket fields
to search some (tickets) in zendesk
Retrieves tickets from Zendesk using search functionality with optional filter expressions.
NOTE: This method uses the search API, which might not return immediately updated data after ticket creation. It may take up to some minutes to index newly created tickets. If you need immediate access to the ticket data, use the get_ticket_by_id method instead. If you want the custom fields names and values use the get_ticket_fields method
Input Concepts
offset
Number of results to skip for pagination.
number
No
(no default)
limit
Maximum number of tickets to return.
number
No
(no default)
Output Concepts
Examples
Get some tickets
Get tickets with filter expression
Get tickets with pagination
to update a (ticket) in zendesk
Updates a specific ticket in Zendesk with the provided information.
Input Concepts
The ticket to be updated in Zendesk, represented as a ZendeskTicket object.
zendesk ticket
Yes
(no default)
Output Concepts
Examples
Update a ticket's status and priority
Last updated
Was this helpful?
