Free cookie consent management tool by TermsFeed a!doesGroupExist() Function
a!doesGroupExist() Function

Function

a!doesGroupExist( groupId )

Verifies whether a group with the specified group ID already exists in the environment.

Parameters

Keyword Type Description

groupId

Number (Integer)

The ID of the group to be checked.

Returns

Boolean

Usage considerations

Returns true when the specified group exists on the system, regardless of security.

This function is particularly useful to add error handling around group IDs that have been stored and then retrieved from a database.

a!doesGroupExist() 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.

a!doesGroupExist(6) returns true

a!doesGroupExist(null) returns false

1
2
3
4
if(a!doesGroupExist(ri!myGroup),
  group(ri!myGroup, "groupName"),
  "Unavailable"
)

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
Feature Compatibility Note
Portals Compatible
Offline Mobile Compatible
Sync-Time Custom Record Fields Incompatible
Real-Time Custom Record Fields Incompatible
Process Reports Incompatible

You cannot use this function to configure a process report.

Process Events Incompatible

You cannot use this function to configure a process event node, such as a start event or timer event.

a!doesGroupExist() Function

FEEDBACK