<?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>Get the group id from the name</title><link>https://community.appian.com/discussions/f/administration/17775/get-the-group-id-from-the-name</link><description>Hello, I am using the function a! groupsByName (&amp;quot;nameGroup&amp;quot;) to get the id from the name of a group but the result returns us [Group: 123] and I have to do the treatment to get the 123. 
 
 toInteger( substitute( split( &amp;quot;[Group: 123]&amp;quot;, &amp;quot;:&amp;quot; )[2], &amp;quot;]&amp;quot;,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get the group id from the name</title><link>https://community.appian.com/thread/123537?ContentTypeID=1</link><pubDate>Mon, 01 Jan 2024 05:54:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4dd61ac6-e261-4853-8743-f24d165356dd</guid><dc:creator>krishnap9567</dc:creator><description>&lt;p&gt;a!forEach(&lt;br /&gt; items: tointeger(extract(fv!row.c8,&amp;quot;[Group:","]&amp;quot;)),&lt;br /&gt; expression: group(fv!item,&amp;quot;groupName&amp;quot;),&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;Here c8 is giving [Group:33] it will help you convert that number into group&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the group id from the name</title><link>https://community.appian.com/thread/73590?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 12:43:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6cb350a2-f6d7-43dd-b89c-81ac6f2bcfff</guid><dc:creator>NARESH KUMAR</dc:creator><description>&lt;p&gt;This worked perfecct&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the group id from the name</title><link>https://community.appian.com/thread/70038?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 12:37:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc1bd165-ffa6-46b6-ab9a-684c10efb9ff</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;&lt;span&gt;Good option thank you very much&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the group id from the name</title><link>https://community.appian.com/thread/69977?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 12:48:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74d35157-b005-4798-b6f8-0702eda81e7b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If you call tointeger() on a string, it will automatically strip out everything from the string that isn&amp;#39;t a number and return the resulting integer.&amp;nbsp; And in this case, I think the type returned is actually &amp;quot;group type&amp;quot;, which you can just call toInteger on itself -&amp;nbsp;either way, you&amp;nbsp;should probably be able to do what you were originally trying to do with a lot less fuss.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;tointeger(a!groupsByName(&amp;quot;myGroupName&amp;quot;))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Just keep in mind that if there&amp;#39;s ever any possibility that 2 groups have the same name, a!groupsByName() will return an array.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the group id from the name</title><link>https://community.appian.com/thread/69969?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 12:05:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d2ef1f0-0e42-4a87-9a97-f58d094e313f</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;&lt;br /&gt;Good option thank you very much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the group id from the name</title><link>https://community.appian.com/thread/69968?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 12:05:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:071f2fd4-1106-4e72-b91e-8023973911ec</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;&lt;br /&gt;Good option thank you very much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the group id from the name</title><link>https://community.appian.com/thread/69967?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 11:43:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4c1fb286-b0bb-4555-8838-147a812b4528</guid><dc:creator>Krishna Chaitanya Mallavarapu</dc:creator><description>&lt;p&gt;cast(&lt;br /&gt; typeof(&lt;br /&gt; 1&lt;br /&gt; ),&lt;br /&gt; a!groupsByName(&lt;br /&gt; &amp;quot;nameGroup&amp;quot;&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the group id from the name</title><link>https://community.appian.com/thread/69966?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 11:43:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:550402e3-f80f-4d6d-8bce-cb8080883aa7</guid><dc:creator>hrishikeshd997</dc:creator><description>&lt;p&gt;You can use the group() function to get its id.&lt;/p&gt;
&lt;p&gt;Something like: group(a!groupByName(&amp;quot;groupName&amp;quot;), &amp;quot;id&amp;quot;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>