<?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 concat extra spaces other than using concat function in a value?</title><link>https://community.appian.com/discussions/f/rules/38115/how-to-concat-extra-spaces-other-than-using-concat-function-in-a-value</link><description>How to concat extra spaces other than using concat function in a value. 
 To convert a list of text strings to a string, concat is not working if it has multiple spaces in a sequence. 
 Eg: {&amp;quot;a&amp;quot;,&amp;quot; &amp;quot;,&amp;quot; &amp;quot;,&amp;quot; &amp;quot;, &amp;quot; &amp;quot;,&amp;quot; &amp;quot;,&amp;quot; &amp;quot;, &amp;quot;b&amp;quot;} 
 Actual output 
 using concat</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to concat extra spaces other than using concat function in a value?</title><link>https://community.appian.com/thread/143498?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 15:27:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f40cd152-54ce-48b0-b2d0-68fe9ee29588</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The raw output will be the actual data the expression sends anywhere else you need it used.&amp;nbsp; For more information about that we&amp;#39;d need more details as to what you&amp;#39;re trying to accomplish with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to concat extra spaces other than using concat function in a value?</title><link>https://community.appian.com/thread/143496?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 14:13:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9186eb4a-ec56-40c2-81e6-222d152be944</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;The formatted value is exactly what it sounds like - a formatted result. The raw result is what is actually used when you pass it to other expressions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to concat extra spaces other than using concat function in a value?</title><link>https://community.appian.com/thread/143489?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 11:09:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2d210c2-3794-4228-a2db-ae8588163ea7</guid><dc:creator>Suranjan</dc:creator><description>&lt;p&gt;Yes, but it is not formatting. It&amp;#39;s not even reflecting in a localvariable, how will it get formatted in external system?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to concat extra spaces other than using concat function in a value?</title><link>https://community.appian.com/thread/143488?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 11:03:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3c24ba27-fbe3-4b5d-9854-7105db97f767</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;Did you try passing the output to the external system? Is it getting formatted there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to concat extra spaces other than using concat function in a value?</title><link>https://community.appian.com/thread/143483?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 09:58:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ea3fd6d-8675-41ba-a465-60714200162a</guid><dc:creator>Suranjan</dc:creator><description>&lt;p&gt;Thanks for your reply, I need it in expression rule not on UI and it is not for display on UI. I need to pass this value to an&amp;nbsp;external system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to concat extra spaces other than using concat function in a value?</title><link>https://community.appian.com/thread/143478?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 09:22:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a96cec30-4ad4-4236-94c1-0f613f89a110</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;You can use the rule that uses concat directly in the necessary places, it will display only the raw output and not the formatted one&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:136px;max-width:494px;" height="136" src="/resized-image/__size/988x272/__key/communityserver-discussions-components-files/15/pastedimage1733736146380v1.png" width="494" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to concat extra spaces other than using concat function in a value?</title><link>https://community.appian.com/thread/143474?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 08:02:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:77c38d22-f6fc-4181-b4b2-3dcdba9d84bf</guid><dc:creator>Suranjan</dc:creator><description>&lt;p&gt;How can we use the raw output at different places?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to concat extra spaces other than using concat function in a value?</title><link>https://community.appian.com/thread/143473?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 08:02:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e79ea76-4f86-4700-90f5-efac7f9e8122</guid><dc:creator>Suranjan</dc:creator><description>&lt;p&gt;Thanks for the response, even I can see the spaces in raw output, but I&amp;#39;m expecting the same from formatted value to use at different places&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to concat extra spaces other than using concat function in a value?</title><link>https://community.appian.com/thread/143444?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 15:20:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:544791c5-ab29-4620-abb5-2afcbd5dc19d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Concat is working fine, just make sure to view Raw Output...&amp;nbsp; the formatted output seems to trim the (displayed) output value.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1733498534820v1.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="160668" url="~/discussions/f/rules/38115/how-to-concat-extra-spaces-other-than-using-concat-function-in-a-value"]using to string function &amp;quot;a; ; ; ; ; ; ; b&amp;quot;[/quote]
&lt;p&gt;Please keep in mind - toString() merely takes the human-readable appian interpretation of a string output, then casts that as a string.&amp;nbsp; The spaces seen between each semicolon aren&amp;#39;t actually from the data, they&amp;#39;re originally just there for readability.&amp;nbsp; There&amp;#39;s no reason to assume concat() would come up with anything like this, since concat() deals ONLY with the actual data in the array, not adding extra fluff for readability like the default output does.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>