# slxSetOwner

### slxSetOwner(ownerName)

Set the owner of records created. This sets the owner for all tables, and overrides the default owner specified in the connector.

### slxSetOwner(ownerName, tableName)

Set the owner of records created, for the table specified. This overrides the default owner specified in the connector.

## Arguments

Argument | Data Type | Description
ownerName | string | Name of the owner to use. This can be: 1. Full Name (John Smith from USERINFO.USERNAME) 2. Login (JohnS from USERSECURITY.USERCODE) 3. UserID (UQFAA00000J from USERINFO.USERID) 4. SecCodeDescription (Smith, John from SECCODE.SECCODEDESC) 5. SecCodeID (NQF8AA00000R from SECCODE.SECCODEID)
tableName | string | Name of the table to apply the owner to. Other tables will use the default owner specified in the connector

## Returns

Nothing

## Description

When a SalesLogix connector is specified, a default owner and default user for new records can be specified. When records are created, the SECCODEID field is populated using the default owner specified.

The owner name can be specified in a number of ways:

1. Full Name (John Smith from USERINFO.USERNAME)
2. Login (JohnS from USERSECURITY.USERCODE)
3. UserID (UQFAA00000J from USERINFO.USERID)
4. SecCodeDescription (Smith, John from SECCODE.SECCODEDESC)
5. SecCodeID (NQF8AA00000R from SECCODE.SECCODEID)

This function enables you to override the default owner set in the connector, either for a single table or for all tables.

## Examples

Example | Returns | Description
slxSetOwner("Fred Smith") |  |

## See Also

slxSetAcntMgr(), slxGetOwnerID()