<?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 RE: Mailmerge using Word VBO in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76009#M28581</link>
    <description>Hi Eric&lt;BR /&gt;&lt;BR /&gt;On the existing Mail merge code, could you give me some pointers on what should be changed, so it can work on a single doc?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jonathan Pringle&lt;BR /&gt;RPA Developer&lt;BR /&gt;Agilisys&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Jan 2023 17:30:00 GMT</pubDate>
    <dc:creator>JonathanPringle</dc:creator>
    <dc:date>2023-01-17T17:30:00Z</dc:date>
    <item>
      <title>Mailmerge using Word VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76004#M28576</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have installed the VBO containing the Mailmerge action.&lt;BR /&gt;&lt;BR /&gt;However, when running it, multiple Word docs are created rather than all collection items being merged into one document.&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18279.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18428i75F6A5DFFDE6034C/image-size/large?v=v2&amp;amp;px=999" role="button" title="18279.png" alt="18279.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jonathan Pringle&lt;BR /&gt;RPA Developer&lt;BR /&gt;Agilisys&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76004#M28576</guid>
      <dc:creator>JonathanPringle</dc:creator>
      <dc:date>2023-01-17T13:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mailmerge using Word VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76005#M28577</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="f4cc940e-4f24-4aa0-b83d-87d3d1325b30" data-tag-text="@Jonathan Pringle" href="https://community.blueprism.com/network/profile?UserKey=f4cc940e-4f24-4aa0-b83d-87d3d1325b30" data-itemmentionkey="6d685d00-22f4-4cd1-acfe-2a21416b6d3f"&gt;@Jonathan Pringle&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;The &lt;EM&gt;&lt;STRONG&gt;Mail Merge&lt;/STRONG&gt;&lt;/EM&gt; action will take the input data Collection and create a new document for each row of the input data based on the template DOC provided. So, if I provide a data collection as input with two rows (see the screenshot), the VBO will create two new documents using the input template (one addressed to Eric and one addressed to Jerry).&lt;BR /&gt;&lt;BR /&gt;Does that help?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18256.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18411iD9147F05FC166A7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="18256.png" alt="18256.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2023 14:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76005#M28577</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2023-01-17T14:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mailmerge using Word VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76006#M28578</link>
      <description>I understand how it works now. The business want it to be like the Word mailmerge, where 3 rows of data in the collection would create 3 letters within one overall document.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jonathan Pringle&lt;BR /&gt;RPA Developer&lt;BR /&gt;Agilisys&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2023 14:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76006#M28578</guid>
      <dc:creator>JonathanPringle</dc:creator>
      <dc:date>2023-01-17T14:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mailmerge using Word VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76007#M28579</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="f4cc940e-4f24-4aa0-b83d-87d3d1325b30" data-tag-text="@Jonathan Pringle" href="https://community.blueprism.com/network/profile?UserKey=f4cc940e-4f24-4aa0-b83d-87d3d1325b30" data-itemmentionkey="1d38c6aa-ee34-4bdd-b416-92b72d114002"&gt;@Jonathan Pringle&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Interesting. &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt; Why would you want all of the custom letters in a single document? When the request was made for us to add this feature to the Word VBO it specifically asked for each letter to be saved as individual documents.&lt;BR /&gt;&lt;BR /&gt;With that said, you could always get to the behavior you're asking for. You could either customize the Merge Mail Code stage to perform the action on a single destination document, or you could ​add a few additional actions to the process and cycle through the individual documents and merge them all into one final document (ex. Mail Merge -&amp;gt; Loop documents -&amp;gt; Open document X -&amp;gt; Select All -&amp;gt; Copy to Clipboard -&amp;gt; Paste from Clipboard into target document).&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2023 15:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76007#M28579</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2023-01-17T15:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mailmerge using Word VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76008#M28580</link>
      <description>Thanks Eric. I dont get why they want the letters in one document either. I will look at the potential solutions, or I will write an object that drives the Word mail merge wizard.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jonathan Pringle&lt;BR /&gt;RPA Developer&lt;BR /&gt;Agilisys&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2023 15:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76008#M28580</guid>
      <dc:creator>JonathanPringle</dc:creator>
      <dc:date>2023-01-17T15:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mailmerge using Word VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76009#M28581</link>
      <description>Hi Eric&lt;BR /&gt;&lt;BR /&gt;On the existing Mail merge code, could you give me some pointers on what should be changed, so it can work on a single doc?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jonathan Pringle&lt;BR /&gt;RPA Developer&lt;BR /&gt;Agilisys&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2023 17:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76009#M28581</guid>
      <dc:creator>JonathanPringle</dc:creator>
      <dc:date>2023-01-17T17:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mailmerge using Word VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76010#M28582</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="f4cc940e-4f24-4aa0-b83d-87d3d1325b30" data-tag-text="@Jonathan Pringle" href="https://community.blueprism.com/network/profile?UserKey=f4cc940e-4f24-4aa0-b83d-87d3d1325b30" data-itemmentionkey="7c2334ee-eb2b-4ac8-8da3-39b27c75179a"&gt;@Jonathan Pringle&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I haven't investigated it, so I'm not 100% sure. What I can tell you is that the current Code stage creates a document instance, based on the template passed in, and then loops through the merge fields defined in the template (i.e. filed name includes &lt;STRONG&gt;MERGEFIELD&lt;/STRONG&gt;) populating each one with the associated value from the data collection. Once it's covered all the fields, it saves the document to file giving it the name based on the specified merge field. It continues that loop for all the rows in the data collection.&lt;BR /&gt;&lt;BR /&gt;My guess is that you'll want to have a look at the actual &lt;A href="https://learn.microsoft.com/en-us/office/vba/api/word.mailmerge" target="_blank" rel="noopener"&gt;MailMerge&lt;/A&gt; object in Word's VBA object model. We didn't actually use that in the action we implemented, but my guess is that it will give you what you're looking for. However, the MailMerge object is based on OLEDB from the looks of it, so you may need to have your input data in a CSV or XLSX that you could then create a connection string for. Hopefully that makes sense?&lt;BR /&gt;&lt;BR /&gt;Cheers,​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2023 18:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76010#M28582</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2023-01-17T18:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: Mailmerge using Word VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76011#M28583</link>
      <description>Thanks Eric for your help. I'll look at my options and decide which one is the best solution.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jonathan Pringle&lt;BR /&gt;RPA Developer&lt;BR /&gt;Agilisys&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jan 2023 11:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Mailmerge-using-Word-VBO/m-p/76011#M28583</guid>
      <dc:creator>JonathanPringle</dc:creator>
      <dc:date>2023-01-18T11:00:00Z</dc:date>
    </item>
  </channel>
</rss>

