New in Formulas 2.0
The name()
function returns the full name of a Person data type.
name(person)
name(personProperty.first())
person.name()
personProperty.first().name()
Code language: JavaScript (javascript)
If used on a built-in Created By or Last Edited By property, you can use the function directly like prop("Created By").name()
. If used on a created Person property, you’ll need to use the first
function as well, even if the property is set to a limit of 1. For example, prop("Assignee").first().name()
Example Formulas
name(prop("Created By")) /* Output: "Thomas Frank" */
prop("Assignee").first().name() /* Output: "Thomas Frank" */
Code language: JavaScript (javascript)