<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Replace a character in University Forum</title>
    <link>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88337#M1988</link>
    <description>&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to replace the spaces with string "_" in multiple rows of a collection. Blue Prism allows to do so with replace function for first row only. How can it be done for multiple rows?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;shah s&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sun, 19 Jan 2020 17:06:00 GMT</pubDate>
    <dc:creator>shahs</dc:creator>
    <dc:date>2020-01-19T17:06:00Z</dc:date>
    <item>
      <title>Replace a character</title>
      <link>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88337#M1988</link>
      <description>&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to replace the spaces with string "_" in multiple rows of a collection. Blue Prism allows to do so with replace function for first row only. How can it be done for multiple rows?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;shah s&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Jan 2020 17:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88337#M1988</guid>
      <dc:creator>shahs</dc:creator>
      <dc:date>2020-01-19T17:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace a character</title>
      <link>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88338#M1989</link>
      <description>&lt;P&gt;Hello, shah s&lt;BR /&gt;&lt;BR /&gt;You can use loop stage to loop through all the rows in the collection.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Since you have successfully replace the character in one row of the collection, you should be able to achieve what you were trying to do with adding a loop.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Met Vonghiran&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Met Vonghiran&lt;BR /&gt;Consultant&lt;BR /&gt;Deloitte&lt;BR /&gt;Asia/Tokyo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jan 2020 02:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88338#M1989</guid>
      <dc:creator>MetVonghiran</dc:creator>
      <dc:date>2020-01-20T02:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace a character</title>
      <link>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88339#M1990</link>
      <description>Thanks for checking. I have tried with loop but collection does not store all values. I want all rows stored in collection. Is there any way to fill "Substitute" function in excel through blue prism? I tried with entering formula in one cell in excel and then copy pasting in other cells but "=Substitute(A1," ", "_")" is not working.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;shah s&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jan 2020 19:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88339#M1990</guid>
      <dc:creator>shahs</dc:creator>
      <dc:date>2020-01-20T19:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace a character</title>
      <link>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88340#M1991</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;A Collection does store rows of data, just like rows in an Access Database table, or even rows in an Excel Worksheet.&lt;BR /&gt;&lt;BR /&gt;The Loop stage loops through the Collection rows 1 by 1 allowing you to use a Calculation stage to update the value of the row column.&lt;BR /&gt;&lt;BR /&gt;The Replace function in a Calculation stage will provide the function you need.&lt;BR /&gt;&lt;BR /&gt;There are other ways to achieve this if working with large Collections, but that's more advanced so use the Loop stage.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Carl Carter&lt;BR /&gt;Developer Program Manager&lt;BR /&gt;Blue Prism&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jan 2020 20:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88340#M1991</guid>
      <dc:creator>Carl__Carter</dc:creator>
      <dc:date>2020-01-20T20:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace a character</title>
      <link>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88341#M1992</link>
      <description>Thanks Vivek. Is this Xml globally available or you have coded it for this question?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;shah s&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jan 2020 20:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88341#M1992</guid>
      <dc:creator>shahs</dc:creator>
      <dc:date>2020-01-21T20:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace a character</title>
      <link>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88342#M1993</link>
      <description>Use the code below to create a custom action for this.&lt;BR /&gt;Make 3 Inputs:&lt;BR /&gt;Blanks- Collection name&lt;BR /&gt;TBR: The value to be replaced (_)&lt;BR /&gt;Value: The value which you want to replace by&amp;nbsp; ("ABC")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;​
&lt;PRE class="language-markup"&gt;try
  for each dr as datarow in blanks.rows
    for each c as datacolumn in blanks.columns
      if (dr(c.columnname)).ToLower() = (TBR).ToLower() then
        dr(c.columnname) = Value
      end if
    next
  next
  no_blanks = blanks
catch e as exception

end try​&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vivek Goel&lt;BR /&gt;RPA Architect&lt;BR /&gt;Asia/Singapore&lt;BR /&gt;"If you like this post, please press the "Recommend" Button.&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Jan 2020 05:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88342#M1993</guid>
      <dc:creator>vivek.kumar.goel</dc:creator>
      <dc:date>2020-01-23T05:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace a character</title>
      <link>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88343#M1994</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/467"&gt;@vivek.kumar.goel&lt;/a&gt;&amp;nbsp;- your solution will only replace the Collection row value if it is equal to the value of TBR. In&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/41280"&gt;@shahs&lt;/a&gt;&amp;nbsp;use case, the code would replace row values which are equal to a single space " ". All rows containing anything other than a single space will be unaffected.&lt;BR /&gt;&lt;BR /&gt;I believe Shah is looking to replace all occurrences of the space char, and whilst some small changes to your code would achieve this,&lt;STRONG&gt;&amp;nbsp;it is also possible through standard Blue Prism stages and the 'Utility - Collection Manipulation' Business Object&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;I've provided an example of how to achieve this without using custom code:&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="33146.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/33242i67787DC21246419C/image-size/large?v=v2&amp;amp;px=999" role="button" title="33146.png" alt="33146.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&amp;nbsp;​
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;BR /&gt;Process xml attached.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Carl Carter&lt;BR /&gt;Developer Program Manager&lt;BR /&gt;Blue Prism&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Jan 2020 09:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88343#M1994</guid>
      <dc:creator>Carl__Carter</dc:creator>
      <dc:date>2020-01-23T09:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace a character</title>
      <link>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88344#M1995</link>
      <description>Hi Carl,&lt;BR /&gt;&lt;BR /&gt;I have gone through code and found an issue that code is removing spaces in password fields also. Kindly check the below code which handled the bug through code stage.
&lt;PRE class="language-markup"&gt;Collection_Out=Collection_In.Copy

for each dr as Datarow in Collection_Out.Rows

  for each dc as DataColumn in Collection_In.Columns

   If( GetBluePrismDataType(dc.datatype)="text" )

     If(dr(dc.columnname).Contains(" ")) then
        dr(dc.columnname)=Replace(dr(dc.columnname)," ","_")
     end If

   End If
  
  Next

Next​&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ravi Teja&lt;BR /&gt;RPA Developer&lt;BR /&gt;Accenture&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Feb 2020 04:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88344#M1995</guid>
      <dc:creator>RaviTeja</dc:creator>
      <dc:date>2020-02-04T04:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace a character</title>
      <link>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88345#M1996</link>
      <description>Hi Ravi,&lt;BR /&gt;&lt;BR /&gt;I wouldn't expect a password field to contain spaces, however a simple decision stage added to the solution I provided could prevent a password field being updated. You can use the column name of the password column(s) in the decision stage, and ignore updating these columns.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Carl Carter&lt;BR /&gt;Developer Program Manager&lt;BR /&gt;Blue Prism&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Replace-a-character/m-p/88345#M1996</guid>
      <dc:creator>Carl__Carter</dc:creator>
      <dc:date>2020-02-05T13:14:00Z</dc:date>
    </item>
  </channel>
</rss>

