<?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>getgroupbyname function</title><link>https://community.appian.com/discussions/f/general/11534/getgroupbyname-function</link><description>Hi, 
 I have an expression rule used for an assignment of a task. In this expression rule, I am appending some text at the end of the group and stripping out any characters outside of text and numbers. Then, I am using the getdirectgroupmemberuserspaging</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: getgroupbyname function</title><link>https://community.appian.com/thread/50845?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 18:24:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c277265a-26f5-4c39-bb5f-4b888dee6bd5</guid><dc:creator>garym</dc:creator><description>Thanks Mike...that was very helpful&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getgroupbyname function</title><link>https://community.appian.com/thread/50844?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 15:36:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84dd4920-f9ba-439f-8447-2233948206e3</guid><dc:creator>Mike Schmitt</dc:creator><description>For the record, I have confirmed what I said about the &amp;quot;group ID - Group Name&amp;quot; simply being how a group type object is rendered in the rule output.  For anyone on 17.3 or higher you can choose &amp;quot;formatted&amp;quot; or &amp;quot;raw&amp;quot; output in the expression rule editor, and this should illustrate what i mean:&lt;br /&gt;
&lt;a href="https://www.screencast.com/t/7ys1JN7HDc"&gt;www.screencast.com/.../7ys1JN7HDc&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getgroupbyname function</title><link>https://community.appian.com/thread/50843?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 15:23:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d1e89ac-d1c1-4622-ba94-e259b82df1a6</guid><dc:creator>Mike Schmitt</dc:creator><description>From what I can tell, you&amp;#39;re confusing the rendering of the &amp;quot;Group Type&amp;quot; output (displaying group ID &amp;amp; group name) with the actual output (simply a group type object).  If the function &amp;quot;getdirectgroupmemberuserspaging&amp;quot; requires an object of Group Type, I would expect the code you showed us to work unless something else is wrong.  &lt;br /&gt;
&lt;br /&gt;
If you want to troubleshoot further, you could also try to see what happens when you call &amp;quot;getdirectgroupmemberuserspaging&amp;quot; while manually passing in an RI of type Group (or maybe just a group ID).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getgroupbyname function</title><link>https://community.appian.com/thread/50842?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 15:00:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6137dc3e-2b71-4216-b6af-7a2db3d1f6cb</guid><dc:creator>garym</dc:creator><description>Thanks for the replies.  I know the group name in the form of text but how do I convert that to a group.  The issue is the getgroupbyname returns the group id with the group name.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getgroupbyname function</title><link>https://community.appian.com/thread/50823?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 05:09:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b400161-738b-40e6-90ff-8445617974b9</guid><dc:creator>anuyag</dc:creator><description>Yes. The getgroupbyname () returns the group id with the group name. Will suggest use group name directly.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getgroupbyname function</title><link>https://community.appian.com/thread/50822?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 04:42:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e284267-60e9-43c0-873e-c97fd5c6f118</guid><dc:creator>Sandeep Deshmukh</dc:creator><description>Hi &lt;a href="/members/garym"&gt;garym&lt;/a&gt; ,&lt;br /&gt;
&lt;br /&gt;
The return type of the getgroupbyname() is Group. But actually it will not return you group Name, it returns Group Id () like &amp;quot;[Group:57]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you only want group name you can use this expression :- group(getgroupbyname(&amp;quot;XYZ group&amp;quot;),&amp;quot;groupName&amp;quot;) but the return type will be text.&lt;br /&gt;
 For getgroupmemberuserspaging function, I have tried this :-  getgroupmemberuserspaging(getgroupbyname(&amp;quot;XYZ group),1,5)&lt;br /&gt;
&lt;br /&gt;
Hope this works for you.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Sandeep&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>