# slxGetAcntMgr

### slxGetAcntMgr(userName)

Retrieve the USERID from the USERINFO table, using the name supplied. This can be used to set the owner or account manager of records created.

## Arguments

Argument | Data Type | Description
userName | string | Name of the account manager to find. 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)

## Returns

String - valid user ID if found.

## Description

When a SalesLogix connector is specified, a default owner and default account manager for new records can be specified. When records are created, the CREATEUSER and MODIFYUSER fields are populated using the default user specified.

You can override this default on a record by record basis using the slxSetAcntMgr() function, or you can get the user ID and map it to the CREATEUSER and MODIFYUSER fields yourself.

## Examples

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

## See Also

slxSetOwner(), slxSetAcntMgr()