Description
The getUserNamedEMail
function returns the full name and the email address of the current user in the following format:
FirstName LastName <Email Address>
This function can only be used within an interactive context, such as a button or a workflow.
Syntax
getUserNamedEMail()
Arguments
The getUserNamedEMail
function does not require any arguments.
Return Types
The function returns the user’s full name and email address as a string (string
).
Examples
Description | Formula | Result |
---|---|---|
Simple display of name and email address |
getUserNamedEMail() |
Marco Meerschwein <marco@example.com> |
Usage within a button to greet the user |
createButton( 1, "Show Mail", "Displays user information", " Process( SetProcessMessage('Hello '+getUserNamedEMail()+'!', 'envelope') ) " ) |
Popup: "Hello Marco Meerschwein <marco@example.com>!" |
Notes
- This function can only be used in an interactive context such as buttons or workflows.
- The
SetProcessMessage
&getUserNamedEMail
functions must be used within aProcess()
function to work correctly. Otherwise, an error such as"Can not execute async functions outside async context"
will occur. - The returned value combines the name and email address of the currently logged-in user.
- Particularly useful for automated emails or user notifications.
Comments
0 comments
Please sign in to leave a comment.