Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
4 subscribers
Views
1246 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi I wrote a plugin to create new group in Appian. I used
sivananthag
over 10 years ago
Hi
I wrote a plugin to create new group in Appian.
I used the groupService.createGroup(Group g) to create a new group in Appian. My code snippet is:
Group grp1 = new Group(Group.SECURITYMAP_PUBLIC,"myCustomGroup1");
Long groupId = grpService.createGroup(grp1);
The code worked and created a "TEAMS" group. Since I used Group.SECURITYMAP_PUBLIC constant, I expected a Custom Group to get created.
I am NOT using SECURITYMAP_TEAM. So I could not understand why it created a TEAM Group.
Please suggest me How to create a CUSTOM Group?
Thanks in advance
Thanks,
Jhothi
...
OriginalPostID-122695
OriginalPostID-122695
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 10 years ago
You need to set the group type to be of type Custom Group.
Group myNewGroup = new Group(GroupBase.SECURITYMAP_PUBLIC, "Group from API");
myNewGroup.setGroupTypeId(groupTypeService.getGroupTypeId("Custom"));
gs.createGroup(myNewGroup);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 10 years ago
You need to set the group type to be of type Custom Group.
Group myNewGroup = new Group(GroupBase.SECURITYMAP_PUBLIC, "Group from API");
myNewGroup.setGroupTypeId(groupTypeService.getGroupTypeId("Custom"));
gs.createGroup(myNewGroup);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data