FunctionCopy link to clipboard
a!doesGroupExist( groupId )
Verifies whether a group with the specified group ID already exists in the environment.
ParametersCopy link to clipboard
Keyword | Type | Description |
---|---|---|
|
Number (Integer) |
The ID of the group to be checked. |
ReturnsCopy link to clipboard
Boolean
Usage considerationsCopy link to clipboard
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.
ExamplesCopy link to clipboard
You can copy and paste these examples into the Expression Rule Designer to see how this works.
1
a!doesGroupExist(6)
Copy
Returns true
if there is a group with an ID of 6
/
1
a!doesGroupExist(null)
Copy
Returns false
1
2
3
4
if(a!doesGroupExist(ri!myGroup),
group(ri!myGroup, "groupName"),
"Unavailable"
)
Copy
- Create a rule input named
myGroup
of typeGroup
. - In the Expression box of the Test Inputs, enter an integer to represent a group ID.
- Click TEST RULE.
Returns either a group name or "Unavailable"
.
Looping through multiple inputsCopy link to clipboard
1
2
3
4
a!localVariables(
local!groupIds: {2,3,30000},
a!doesGroupExist(local!groupIds)
)
Copy
Returns {true, true, false}
. This example may return different values depending on the groups in the environment.
Feature compatibilityCopy link to clipboard
The table below lists this function's compatibility with various features in Appian.
Feature | Compatibility | Note |
---|---|---|
Portals | Partially compatible | Can be used with Appian Portals if it is connected using an integration and web API. |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Incompatible | |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Incompatible | Cannot be used to configure a process report. |
Process Events | Incompatible | Cannot be used to configure a process event node, such as a start event or timer event. |