<?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 prefix value from group using wrapper</title><link>https://community.appian.com/discussions/f/new-to-appian/24806/how-to-remove-prefix-value-from-group-using-wrapper</link><description>This is code. For this we will get below output. But we want to remove CR from output and display. How can we achive it</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to remove prefix value from group using wrapper</title><link>https://community.appian.com/thread/96008?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2022 13:43:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c1b061c-8e1a-4ba8-b1a3-6075ed871741</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If it&amp;#39;ll be a standard convention within your system that all group names will have the prefix &amp;quot;CR&amp;quot;, but you want those group names displayed to end users without the &amp;quot;CR&amp;quot; prefix, you should create an expression rule that is specialized for your system&amp;#39;s purpose, wherein you pass a group name (or maybe just the group object itself), get the name, and remove the &amp;quot;CR &amp;quot; text from the beginning.&amp;nbsp; This is easy to accomplish using standard &lt;a href="https://docs.appian.com/suite/help/22.2/Appian_Functions.html"&gt;Appian Text Functions&lt;/a&gt;.&amp;nbsp; An easier example that comes to mind would look like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;replace(&amp;quot;CR My Group&amp;quot;, 1, 3, &amp;quot;&amp;quot;)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here we take &amp;quot;CR My Group&amp;quot;, take the First through Third characters of the name, and replace them with a blank character.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove prefix value from group using wrapper</title><link>https://community.appian.com/thread/95981?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2022 06:34:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b2701a8-044a-4c18-8baa-34a3f7e0449e</guid><dc:creator>maaaaj0001</dc:creator><description>&lt;p&gt;how can i do that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove prefix value from group using wrapper</title><link>https://community.appian.com/thread/95980?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2022 06:27:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b80b677-8c6d-4584-b1fa-e0a9175b734b</guid><dc:creator>Manish_Kumar</dc:creator><description>&lt;p&gt;I believe you wanted to show this group name in interface , As the return type of your code is just a text , why don&amp;#39;t you just replace the CR using appian function ? or you have some other requirement?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove prefix value from group using wrapper</title><link>https://community.appian.com/thread/95979?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2022 05:56:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3185f4f3-6332-46ae-a429-e4731a1378b1</guid><dc:creator>maaaaj0001</dc:creator><description>&lt;p&gt;I want group name as exactly the same thing, But while printing out the group name prefix should be removed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove prefix value from group using wrapper</title><link>https://community.appian.com/thread/95944?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 15:58:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f85ade31-5482-409d-867a-cfc873a8b749</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The &amp;quot;CR&amp;quot; prefix appears to be included in the actual Group Name, when the rule&amp;#39;s input is a Group rather than a Username.&amp;nbsp; So, why not change the Group Name to not include that prefix, if it&amp;#39;s not wanted in the group name output?&amp;nbsp; If this is not sufficient, can you go more into detail as to what it is you&amp;#39;re trying to achieve here?&lt;/p&gt;
&lt;p&gt;Also as an aside, I&amp;#39;m unclear why it was necessary to include all 30-plus lines of code here (though, thanks for using a Code Box at least).&amp;nbsp; AFAIK the only relevant line of code here is, &amp;quot;&lt;em&gt;&lt;strong&gt;group(togroup(ri!userId), &amp;quot;groupName&amp;quot;)&lt;/strong&gt;&lt;/em&gt;&amp;quot;, which is just the normal use of the &amp;quot;group&amp;quot; function to return a Group&amp;#39;s Name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>