Free cookie consent management tool by TermsFeed getdistinctusers() Function
getdistinctusers() Function
This function cannot be used with Custom Record Field Expressions. It can only be used with Offline Mobile if it is loaded at the top of the form.
For a full list of functions and their feature compatibility, explore the Appian Functions table.

Function

getdistinctusers( peopleArray )

Retrieves users from a set of users and groups.

See also: topeople()

Parameters

Keyword Type Description

peopleArray

User or Group Array

The groups or users and groups that you want to convert to the User data type.

Returns

User Array

Usage considerations

You can reference a group as a peopleArray value by creating a constant with a User or Group data type and specifying your desired group as its value. Wrap this value with the topeople() function.

getdistinctusers() will only return the first 10,000 users.

getdistinctusers() cannot be used to define a column of process report data or in a process event.

Examples

You can copy and paste these examples into the Expression Rule Designer to see how this works.

Using it in a script task:

getdistinctusers(topeople( cons!group )) when stored as pv!multipleuser returns "user.name1", "user.name2", ...

Open in Github Built: Fri, Nov 10, 2023 (03:42:48 PM)

getdistinctusers() Function

FEEDBACK