Endpoint Delete table row
Name
delete_table_row
Description
Delete the specified row in the table by row 'sys_id'. [API reference]
Related Tables
Parameters
Parameter | Required | Options |
---|---|---|
Name:
Label: TableName Table name |
YES | |
Name:
Label: SysId Row 'sys_id' |
YES |
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
status |
DT_WSTR
|
nvarchar(64)
|
64 | |
sys_id |
DT_WSTR
|
nvarchar(64)
|
64 | |
http_status |
DT_I4
|
int
|
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
sys_id |
DT_WSTR
|
nvarchar(500)
|
500 |
Examples
SSIS
Use ServiceNow Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
Required Parameters | |
---|---|
TableName | Fill-in the parameter... |
SysId | Fill-in the parameter... |
Optional Parameters | |
RawOutputDataRowTemplate | {} |
EnableRawOutputModeSingleRow | True |
ContineOn404Error | True |

API Destination
This Endpoint belongs to the [Dynamic Table] table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to delete table row:
Required Parameters | |
---|---|
TableName | Fill-in the parameter... |
SysId | Fill-in the parameter... |
Optional Parameters | |
RawOutputDataRowTemplate | {} |
EnableRawOutputModeSingleRow | True |
ContineOn404Error | True |

ODBC application
Use these SQL queries in your ODBC application data source:
Delete table row
SELECT * FROM [dynamic_table_name]
WHERE sys_id = 'abcd-1234-sysid'
WITH
(
"TableName" = 'abcd-1234-tablename'
)
delete_table_row
endpoint belongs to
[Dynamic Table]
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Delete table row
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM [dynamic_table_name]
WHERE sys_id = ''abcd-1234-sysid''
WITH
(
"TableName" = ''abcd-1234-tablename''
)';
EXEC (@MyQuery) AT [LS_TO_SERVICENOW_IN_GATEWAY];
delete_table_row
endpoint belongs to
[Dynamic Table]
table(s), and can therefore be used via those table(s).