<?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: MS Word Hyperlink Extraction in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/MS-Word-Hyperlink-Extraction/m-p/53292#M8009</link>
    <description>&lt;SPAN&gt;Hi Khushboo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;For your given use case, you can extend the MS Word VBO by creating your own custom action as shown in the solution below:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;Solution Walkthrough:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to achieve this, we can extend&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the "MS Word VBO" by creating a separate action within it and you can call it as "&lt;/SPAN&gt;&lt;STRONG&gt;Get Hyperlinks&lt;/STRONG&gt;&lt;SPAN&gt;". This action will be having the following input parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;handle (Number) : The data item having the handle value in the instance dictionary that needs to be queried. (This you can get from Create Instance action)&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;document Name (Text) : The document name of the current workbook which the Blur Prism bot is operating on. (This you can get from Open Workbook action)&lt;/LI&gt;
&lt;/OL&gt;
&lt;BR /&gt;This action will also have an output parameter called 'Hyperlinks' which is of Collection type which will consist of all the extracted hyperlinks from the supplied word document.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Refer to the below workflow for more information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20518.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20667iE7B2A816CE543FAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="20518.png" alt="20518.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Input Parameters:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20519.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20671i03618EE6EA070CEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="20519.png" alt="20519.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Output Parameters:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20520.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20670iB73DE05FCB388F93/image-size/large?v=v2&amp;amp;px=999" role="button" title="20520.png" alt="20520.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, add a custom code stage with the following Input &amp;amp; output parameters and the code as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20521.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20669i36A5EB539C8D3C16/image-size/large?v=v2&amp;amp;px=999" role="button" title="20521.png" alt="20521.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20522.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20668i95FE11464A7BA8ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="20522.png" alt="20522.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;Code:&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;CODE&gt;Dim wDoc As Object = GetDocument(handle,document_name)&lt;BR /&gt;Dim i As Integer&lt;BR /&gt;Dim dt As New System.Data.DataTable&lt;BR /&gt;Dim dr As System.Data.DataRow&lt;BR /&gt;&lt;BR /&gt;dt.Columns.Add("Hyperlink", GetType(String))&lt;BR /&gt;&lt;BR /&gt;For i = 1 To wDoc.Hyperlinks.Count Step 1&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dr = dt.NewRow&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dr("Hyperlink") = wDoc.Hyperlinks(i).Address&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt.Rows.Add(dr)&lt;BR /&gt;&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;Hyperlinks = dt&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can publish this action and run the same from Process Studio to check your results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some of the test results are shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Scenario: I have added two hyperlinks in my word document for Google and Linkedin:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20523.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20666iCDB3C5130CFEEA69/image-size/large?v=v2&amp;amp;px=999" role="button" title="20523.png" alt="20523.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20524.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20674i1EC803577F713F27/image-size/large?v=v2&amp;amp;px=999" role="button" title="20524.png" alt="20524.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;Result of the action is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20525.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20672i08BA6A402BE28E9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="20525.png" alt="20525.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;Let us know if this helps you and also if you have any queries feel free to reach us out!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant&lt;BR /&gt;Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Jan 2022 07:52:00 GMT</pubDate>
    <dc:creator>devneetmohanty07</dc:creator>
    <dc:date>2022-01-05T07:52:00Z</dc:date>
    <item>
      <title>MS Word Hyperlink Extraction</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Word-Hyperlink-Extraction/m-p/53291#M8008</link>
      <description>Hello Team,&lt;BR /&gt;&lt;BR /&gt;Request you to advise how to extract hyperlink from MS Word file.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Khushboo Kumari&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Khushboo Kumari&lt;BR /&gt;Junior Configurator&lt;BR /&gt;HSBC&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jan 2022 06:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Word-Hyperlink-Extraction/m-p/53291#M8008</guid>
      <dc:creator>KhushbooKumari</dc:creator>
      <dc:date>2022-01-05T06:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: MS Word Hyperlink Extraction</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Word-Hyperlink-Extraction/m-p/53292#M8009</link>
      <description>&lt;SPAN&gt;Hi Khushboo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;For your given use case, you can extend the MS Word VBO by creating your own custom action as shown in the solution below:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;Solution Walkthrough:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to achieve this, we can extend&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the "MS Word VBO" by creating a separate action within it and you can call it as "&lt;/SPAN&gt;&lt;STRONG&gt;Get Hyperlinks&lt;/STRONG&gt;&lt;SPAN&gt;". This action will be having the following input parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;handle (Number) : The data item having the handle value in the instance dictionary that needs to be queried. (This you can get from Create Instance action)&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;document Name (Text) : The document name of the current workbook which the Blur Prism bot is operating on. (This you can get from Open Workbook action)&lt;/LI&gt;
&lt;/OL&gt;
&lt;BR /&gt;This action will also have an output parameter called 'Hyperlinks' which is of Collection type which will consist of all the extracted hyperlinks from the supplied word document.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Refer to the below workflow for more information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20518.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20667iE7B2A816CE543FAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="20518.png" alt="20518.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Input Parameters:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20519.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20671i03618EE6EA070CEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="20519.png" alt="20519.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Output Parameters:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20520.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20670iB73DE05FCB388F93/image-size/large?v=v2&amp;amp;px=999" role="button" title="20520.png" alt="20520.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, add a custom code stage with the following Input &amp;amp; output parameters and the code as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20521.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20669i36A5EB539C8D3C16/image-size/large?v=v2&amp;amp;px=999" role="button" title="20521.png" alt="20521.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20522.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20668i95FE11464A7BA8ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="20522.png" alt="20522.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;Code:&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;CODE&gt;Dim wDoc As Object = GetDocument(handle,document_name)&lt;BR /&gt;Dim i As Integer&lt;BR /&gt;Dim dt As New System.Data.DataTable&lt;BR /&gt;Dim dr As System.Data.DataRow&lt;BR /&gt;&lt;BR /&gt;dt.Columns.Add("Hyperlink", GetType(String))&lt;BR /&gt;&lt;BR /&gt;For i = 1 To wDoc.Hyperlinks.Count Step 1&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dr = dt.NewRow&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dr("Hyperlink") = wDoc.Hyperlinks(i).Address&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt.Rows.Add(dr)&lt;BR /&gt;&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;Hyperlinks = dt&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can publish this action and run the same from Process Studio to check your results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some of the test results are shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Scenario: I have added two hyperlinks in my word document for Google and Linkedin:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20523.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20666iCDB3C5130CFEEA69/image-size/large?v=v2&amp;amp;px=999" role="button" title="20523.png" alt="20523.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20524.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20674i1EC803577F713F27/image-size/large?v=v2&amp;amp;px=999" role="button" title="20524.png" alt="20524.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;Result of the action is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20525.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20672i08BA6A402BE28E9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="20525.png" alt="20525.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;Let us know if this helps you and also if you have any queries feel free to reach us out!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant&lt;BR /&gt;Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jan 2022 07:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Word-Hyperlink-Extraction/m-p/53292#M8009</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-01-05T07:52:00Z</dc:date>
    </item>
  </channel>
</rss>

