Skip to main content
December 6, 2023
Solved

Issue in group

  • December 6, 2023
  • 2 replies
  • 0 views

Hi Team,

I have requirement to get the groups names which has the input value which we pass.

For example: If I pass input value as "United States" I should get the group with the name "<App prefix>_United States",

India => "<App Prefix>_India"

Best answer by stefanhelzle0001

Use a!groupsByName()

docs.appian.com/.../fnc_people_a_groupsbyname.html

2 replies

prakhars0731
December 6, 2023

a!localVariables(
local!groups:getallgroups(batchsize:-1,startIndex:1),
a!flatten(a!forEach(
items: local!groups,
expression: if(
find(
ri!text,group(fv!item,"groupName"),1
)>1,
fv!item,
{}
)
))
)

stefanhelzle0001
Brainy
December 6, 2023