# slxGetOwnerID

### slxGetOwnerID(ownerName)

Retrieve the SECCODEID from the SECCODE table, using the name supplied. This can be used to set the owner of records created.

## Arguments

Argument | Data Type | Description
ownerName | string | Name of the owner to check. This can be: 1. SECCODEDESC field in the SECCODE table 2. The user login (USERCODE field from USERSECURITY) 3. The user name (USER NAME field from USERINFO)

## Returns

String - valid owner ID if found.

## 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. SECCODEDESC field in the SECCODE table
2. The user login (USERCODE field from USERSECURITY)
3. The user name (USER NAME field from USERINFO)

You can override this default on a record by record basis using the slxSetOwner() function, or you can get the owner ID and map it to the SECCODEID field yourself.

## Examples

Example | Returns | Description
slxGetOwnerID("Fred Smith") | ID if found |

## See Also

slxSetOwner(), slxSetAcntMgr()