<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to remove member from particular group, from the grid column using dynamicLink ?</title><link>https://community.appian.com/discussions/f/general/34677/how-to-remove-member-from-particular-group-from-the-grid-column-using-dynamiclink</link><description>I&amp;#39;d like to remove a specific member from the chosen group using the dynamicLink and add a member to all selected groups.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to remove member from particular group, from the grid column using dynamicLink ?</title><link>https://community.appian.com/thread/133475?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 13:02:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8535269e-a540-499b-b3e6-c5dea56b2356</guid><dc:creator>Nisarg Soni</dc:creator><description>&lt;p&gt;Ok&amp;nbsp; Thank You. Now I am go with the process as you suggest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove member from particular group, from the grid column using dynamicLink ?</title><link>https://community.appian.com/thread/133473?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 12:52:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a91c578-cef5-49e3-9ba1-7aec65b15b59</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;hi&amp;nbsp;&lt;a href="/members/nisargs8085"&gt;Nisarg Soni&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use below code for removing group member from selected group, You can enhance the code if required for your requirement. you can use&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/24.1/Remove_Group_Members_Smart_Service.html#:~:text=The%20Remove%20Group%20Members%20node,order%20to%20run%20this%20node."&gt;a!removeGroupMembers()&lt;/a&gt;&amp;nbsp;for adding members you can use&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/24.1/Add_Group_Members_Smart_Service.html#aaddmemberstogroup"&gt;a!addMembersToGroup()&lt;/a&gt;&amp;nbsp;go by process model as &amp;nbsp; said, this would have save the history for how has ran the process.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!gridField(
                label: &amp;quot;&amp;quot;,
                labelPosition: &amp;quot;ABOVE&amp;quot;,
                data: index(
                  local!distinctUsers,
                  wherecontains(
                    touniformstring(fv!item),
                    touniformstring(local!distinctUsers.Group)
                  )
                ),
                selectable: true,
                selectionValue: local!selection,
                selectionSaveInto: {
                 
                  local!selection,
               
                  a!save(local!selectedRows, append(local!selectedRows, fv!selectedRows)),
                 
                  a!save(local!selectedRows, difference(local!selectedRows, fv!deselectedRows))
                },
                columns: {
                  a!gridColumn(
                    label: group(
                      groupId: togroup(fv!item),
                      property: &amp;quot;groupName&amp;quot;
                    ),
                    value: fv!row.Members
                  ),
                  a!gridColumn(
                    value: a!richTextDisplayField(
                      value: a!richTextIcon(
                        icon: &amp;quot;times&amp;quot;,
                        caption: &amp;quot;Remove User&amp;quot;,
                        color: &amp;quot;NEGATIVE&amp;quot;,
                        size: &amp;quot;MEDIUM&amp;quot;,
                        link: a!dynamicLink(
                          value: fv!row.Members,
                          saveInto: {ri!userToRemove,
                          a!removeGroupMembers(
                            group: local!selectedRows.Group,
                            members: local!selectedRows.Members
                          )
                        }
                        )
                      )
                    ),
                    width: &amp;quot;ICON&amp;quot;
                  )
                },
                pagingSaveInto: local!pagingInfo
              )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove member from particular group, from the grid column using dynamicLink ?</title><link>https://community.appian.com/thread/133472?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 12:44:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61a141ac-a9ba-46f8-8727-d6a8dc4c1b3f</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!dynamiclink(
saveInto: a!removeGroupMembers(
                            group: &amp;quot;Your Group&amp;quot;,
                            members: fv!row.Members/&amp;quot;Current member you want to remove&amp;quot;,
                          
                          ))
                          
                          
                        
a!dynamiclink(
saveInto: a!addMembersToGroup(
                            group: &amp;quot;Your Group&amp;quot;,
                            newMembers: /&amp;quot;Current member you want to add&amp;quot;,
                          
                          ))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Use&amp;nbsp;&lt;strong&gt;a!removeGroupMembers() and&amp;nbsp;a!addMembersToGroup() in save into&lt;/strong&gt;&amp;nbsp;param of dynamic link. Interface Configuration needs to look like above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suggest going with initiating a Process cause it helps in future references (It provides history of who did it). In process model use respective smart services&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>