---
title: Using the Work Element
description: The work element encodes SQL statements to be executed by the probe.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/platform-administration/c\_UsingTheWorkElement.html
release: australia
topic_type: concept
last_updated: "2026-03-12"
reading_time_minutes: 2
breadcrumb: [JDBCProbe, Supported integration interfaces, Integration options, Integration with third-party applications and data sources, Integrations, Configure core features, Administer the ServiceNow AI Platform]
---
# Using the Work Element
The work element encodes SQL statements to be executed by the probe.
**Note:** This API can only be used by the following:
- Development users who have the rights to edit scripts to insert records to the ecc\_queue.
- Admin users to insert records through the UI.
There’s no backend sanitization of any SQL statements, table names, or column names. It's the development users’ responsibility to sanitize them if non-trusted users can manipulate them to execute malicious queries.
The following are the valid work child elements.
- select
- update
- insert
- delete
## SELECT
Retrieve rows from the specified table in the database specified by the JDBC connection string. The simplest select work just specifies the table name and will retrieve all fields in a row, for example:
```
...
...
```
To specify a search criteria, specify the where attribute on the select element, for example:
```
...
...
```
To specify the fields you want returned, embed the fields as child elements of the select element, for example:
```
...
...
```
To use a direct SQL statement, specify it in the **query** parameter
```
...
...
```
## UPDATE
An **update** SQL can be executed by specifying the **table**, optional where clause and required child elements for the fields and their values to update.
```
...
ServiceNow - INC10020http://Macintosh-9.local:8080/glide/incident.do?sys_id=17a31f380a0a0bae0048ca875c8891d030
...
```
## INSERT
An **insert** SQL can be executed by specifying the **table**, and required child elements for the fields and their values to insert.
```
...
ServiceNow - INC10020http://Macintosh-9.local:8080/glide/incident.do?sys_id=17a31f380a0a0bae0048ca875c8891d030
...
```
## DELETE
A delete SQL can be executed by specifying the table and optional where clause.
```
...
...
```
**Parent Topic:**[JDBCProbe](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/t_JDBCProbe.md)
**Related topics**
[JDBCProbe](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/t_JDBCProbe.md)