# slxGetTableID

### slxGetTableID(tableName)

Return a valid primary key value for teh table specified, so it can be sued when inserting a new row.

## Arguments

Argument | Data Type | Description
tableName | string | Name of the table for which an ID is required. The table must exist in the SalesLogix database.

## Returns

String - valid id for a new row in the table

## Description

Whenever a row is created in any table in SalesLogix, it has a primary key. These primary keys are created using a function in the SalesLogix API, and are specific to a table. This function calls the SalesLogix API and returns a valid primary key for the table specified.

## Examples

Example | Returns | Description
slxGetTableID("MyTable") | Valid ID for this table |

## See Also

slxgetcontactid(), slxgetleadsourceid(), slxgetpickid()