<?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 #BPTechTip XML manipulation to avoid excessive manual text entry in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83112#M34440</link>
    <description>Sometimes during development you'll have a long list of field names to enter into BP that you know will be painful to type in and you're likely to make mistakes. But knowing that BP diagrams are based on XML, there are workarounds for faster and accurate data entry.&lt;BR /&gt;&lt;BR /&gt;For example, if you paste a collection into a text editor capable of formatting XML (eg Notepad++), you'll begin to understand how the XML is structured. And importantly, you can also edit the XML and paste back into BP - obviously the XML has to be valid, but BP will not let you paste 'bad XML' back into the diagram.&lt;BR /&gt;&lt;BR /&gt;Once you realise this copy-edit-paste trick works, it opens up possibilities to save time, and the attached Excel is a an example tool you can use with long lists of fields.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Collection Field Names&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;Here you'll see a collection and its corresponding XML.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23637.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23771i5364DA7E9BBCD2D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="23637.png" alt="23637.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Now lets imagine the collection needs to have 50 fields. Rather than enter them manually, you could paste them into the 'Names and Types' page of the Excel tool and use the formulas on the 'Collection Field XML' page to generate the XML necessary for BP collection fields.&lt;BR /&gt;&lt;BR /&gt;Then you can replace the old field elements with the new elements by simply pasting from Excel into the text editor (Note - the indentation/whitespace doesn't matter).&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23638.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23770iDF810320406E1E16/image-size/large?v=v2&amp;amp;px=999" role="button" title="23638.png" alt="23638.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23639.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23772iB3FD42AAA8356F75/image-size/large?v=v2&amp;amp;px=999" role="button" title="23639.png" alt="23639.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Then copy all the XML from the text editor back into BP. Your collection now has 50 fields!&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23640.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23773i00079A14164420B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="23640.png" alt="23640.png" /&gt;&lt;/span&gt;&lt;BR /&gt;This hack isn't worth the effort for a handful of fields but it can save you a lot of pain when setting up a large collection.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;NOTE: the attachment is provided 'as is' and is not an officially supported BP product. Feel free to use it as you see fit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A data-tag-text="BPTechTips" data-sign="#" class="user-content-hashtag" href="https://community.blueprism.com/search?s=tags%3A%22BPTechTips%22&amp;amp;executesearch=true" data-tag-key="96c6fa99-5a9a-4919-98a6-d9ce55afe99f"&gt;#BPTechTips&lt;/A&gt;&lt;/STRONG&gt;​​</description>
    <pubDate>Thu, 23 Sep 2021 11:32:00 GMT</pubDate>
    <dc:creator>John__Carter</dc:creator>
    <dc:date>2021-09-23T11:32:00Z</dc:date>
    <item>
      <title>#BPTechTip XML manipulation to avoid excessive manual text entry</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83112#M34440</link>
      <description>Sometimes during development you'll have a long list of field names to enter into BP that you know will be painful to type in and you're likely to make mistakes. But knowing that BP diagrams are based on XML, there are workarounds for faster and accurate data entry.&lt;BR /&gt;&lt;BR /&gt;For example, if you paste a collection into a text editor capable of formatting XML (eg Notepad++), you'll begin to understand how the XML is structured. And importantly, you can also edit the XML and paste back into BP - obviously the XML has to be valid, but BP will not let you paste 'bad XML' back into the diagram.&lt;BR /&gt;&lt;BR /&gt;Once you realise this copy-edit-paste trick works, it opens up possibilities to save time, and the attached Excel is a an example tool you can use with long lists of fields.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Collection Field Names&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;Here you'll see a collection and its corresponding XML.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23637.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23771i5364DA7E9BBCD2D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="23637.png" alt="23637.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Now lets imagine the collection needs to have 50 fields. Rather than enter them manually, you could paste them into the 'Names and Types' page of the Excel tool and use the formulas on the 'Collection Field XML' page to generate the XML necessary for BP collection fields.&lt;BR /&gt;&lt;BR /&gt;Then you can replace the old field elements with the new elements by simply pasting from Excel into the text editor (Note - the indentation/whitespace doesn't matter).&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23638.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23770iDF810320406E1E16/image-size/large?v=v2&amp;amp;px=999" role="button" title="23638.png" alt="23638.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23639.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23772iB3FD42AAA8356F75/image-size/large?v=v2&amp;amp;px=999" role="button" title="23639.png" alt="23639.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Then copy all the XML from the text editor back into BP. Your collection now has 50 fields!&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23640.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23773i00079A14164420B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="23640.png" alt="23640.png" /&gt;&lt;/span&gt;&lt;BR /&gt;This hack isn't worth the effort for a handful of fields but it can save you a lot of pain when setting up a large collection.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;NOTE: the attachment is provided 'as is' and is not an officially supported BP product. Feel free to use it as you see fit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A data-tag-text="BPTechTips" data-sign="#" class="user-content-hashtag" href="https://community.blueprism.com/search?s=tags%3A%22BPTechTips%22&amp;amp;executesearch=true" data-tag-key="96c6fa99-5a9a-4919-98a6-d9ce55afe99f"&gt;#BPTechTips&lt;/A&gt;&lt;/STRONG&gt;​​</description>
      <pubDate>Thu, 23 Sep 2021 11:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83112#M34440</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-09-23T11:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTip XML manipulation to avoid excessive manual text entry</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83113#M34441</link>
      <description>&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Inputs and Outputs&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;The same principle can be applied to Start stage inputs or End stage outputs. Set up a stage with an input and paste into your text editor:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23609.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23744iD169FFA0F42B1D5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="23609.png" alt="23609.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Use the 'Input XML' page in the Excel file to generate XML using the names on the 'Names and Types' page. Then paste back into the editor to replace the original input elements.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23610.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23742iD76333FC6D125959/image-size/large?v=v2&amp;amp;px=999" role="button" title="23610.png" alt="23610.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Then paste all the XML back into BP.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23611.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23743i76EC482ACE647B52/image-size/large?v=v2&amp;amp;px=999" role="button" title="23611.png" alt="23611.png" /&gt;&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Sep 2021 11:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83113#M34441</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-09-23T11:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTip XML manipulation to avoid excessive manual text entry</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83114#M34442</link>
      <description>&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Multicalcs&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;If you wanted to use a multicalc to transfer data between collections that have many fields, use the 'Multi Calc XML' page in a similar manner.&lt;BR /&gt;&lt;BR /&gt;Set up a basic multicalc and paste into the text editor.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23617.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23751iA68D4A882C9ACE8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="23617.png" alt="23617.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Generate the replacement XML elements using the Excel tool, paste into the text editor and then paste everything back into BP.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23618.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23756iA6CFBCF6B01B2C65/image-size/large?v=v2&amp;amp;px=999" role="button" title="23618.png" alt="23618.png" /&gt;&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Sep 2021 11:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83114#M34442</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-09-23T11:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTip XML manipulation to avoid excessive manual text entry</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83115#M34443</link>
      <description>&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Collection Initial Data Rows&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;Let's say you have a simple collection that needs many rows of 'initial value' data that you don't want to have to enter manually.&lt;BR /&gt;&lt;BR /&gt;Set up you collection with the necessary fields, create one row on the initial values tab, and then copy to the text editor.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23623.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23755iC7132D31B9D4BCDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="23623.png" alt="23623.png" /&gt;&lt;/span&gt;&lt;BR /&gt;In the Excel tool, go to the Collection Row XML page, create the field names you require and paste in the data values.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23624.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23757iE0673B2FB7DDF613/image-size/large?v=v2&amp;amp;px=999" role="button" title="23624.png" alt="23624.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Edit the 'template XML' cell to match your column names - this part is a little tricky to get right but you should be able to understand the example. Then copy the orange cell down to generate the XML elements.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23625.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23759i4FE62B7D7BF786EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="23625.png" alt="23625.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Then as before, copy the XML elements back into the text editor to replace the original row element. And then copy everything back into BP.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23626.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23758i42CC9D91B34A6F23/image-size/large?v=v2&amp;amp;px=999" role="button" title="23626.png" alt="23626.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Sep 2021 11:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83115#M34443</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-09-23T11:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTip XML manipulation to avoid excessive manual text entry</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83116#M34444</link>
      <description>&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Compound/Nested Collections&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;Compound collections are, as you can imagine, more awkward and the Excel tool is unlikely to be useful for anything but 'shallow' nesting.&lt;BR /&gt;&lt;BR /&gt;The 'Compound Collection Row XML' page in the Excel tool follows the same pattern as the 'Collection Row XML' page but with more complex formulas.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23631.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23765i76710D156B1FBABB/image-size/large?v=v2&amp;amp;px=999" role="button" title="23631.png" alt="23631.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23632.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23763i78A8B5F57F269A4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="23632.png" alt="23632.png" /&gt;&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Sep 2021 11:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTip-XML-manipulation-to-avoid-excessive-manual-text-entry/m-p/83116#M34444</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-09-23T11:52:00Z</dc:date>
    </item>
  </channel>
</rss>

