Skip to main content

USERNAME

The USERNAME() function is used to retrieve the name of the Windows user who is running the Data Sync project. It returns a string containing the user name.

This can be useful when you want to track who performed a specific task or action, as the function can be used in a calculated column or in a mapping to record the user name along with other data.

For example, you might create a mapping to synchronize data between two databases, and you want to record the user name in the destination database whenever a row is inserted or updated. You could use the USERNAME() function in a calculated column to retrieve the user name, and then include that value in the mapping to be written to the destination database.

Syntax

string USERNAME()