<?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: WORD DOCUMENT TEMPLATE INPUT in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1396478#M346303</link>
    <description>&lt;P class="lia-align-left"&gt;Thanks&lt;/P&gt;&lt;P class="lia-align-left"&gt;Please do so i believe it can be done.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2025 07:57:53 GMT</pubDate>
    <dc:creator>Gratus_tz</dc:creator>
    <dc:date>2025-06-10T07:57:53Z</dc:date>
    <item>
      <title>WORD DOCUMENT TEMPLATE INPUT</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1395905#M346168</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have a encountered a challenge and I wish to get solution if anyone knows something.&lt;BR /&gt;So i have a Word document which I need to insert it Alteryx the way it is and use the Interface tools to Create an Analytical tools which will be able to change specific areas from the Document. S o my question is can you input the Document in Excel without changing its Format structure and If Yes what are the tools that you would recommend for me and how to use them&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 09:25:38 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1395905#M346168</guid>
      <dc:creator>Gratus_tz</dc:creator>
      <dc:date>2025-06-06T09:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: WORD DOCUMENT TEMPLATE INPUT</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1395939#M346173</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/632641"&gt;@Gratus_tz&lt;/a&gt;&amp;nbsp;This is more of an office 365 question than alteryx question, I know Alteryx cannot handle Word documents.&lt;/P&gt;&lt;P&gt;I would look to possibly a way in python to convert word to excel and pass into the alteryx workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bacon&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 12:53:22 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1395939#M346173</guid>
      <dc:creator>abacon</dc:creator>
      <dc:date>2025-06-06T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: WORD DOCUMENT TEMPLATE INPUT</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1395940#M346174</link>
      <description>&lt;P&gt;I would also look into this macro.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Community-Gallery/Word-doc-input/ta-p/1055948" target="_blank"&gt;https://community.alteryx.com/t5/Community-Gallery/Word-doc-input/ta-p/1055948&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 12:53:45 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1395940#M346174</guid>
      <dc:creator>abacon</dc:creator>
      <dc:date>2025-06-06T12:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: WORD DOCUMENT TEMPLATE INPUT</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1396023#M346192</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/632641"&gt;@Gratus_tz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Great question, there are multiple ways you could tackle this. Below I have outlined two methods:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The first one would be to read the word doc in as a .zip file then try and parse the xml.&lt;/P&gt;&lt;P&gt;And the second method involves Python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you could create a .bat file which converts all your Word documents to PDFs and then uses some of the computer vision tools to read these in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For context, the word document i am trying to read in looks like this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-06-06 185654.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/405482iA3AE555E4C0D03E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-06-06 185654.png" alt="Screenshot 2025-06-06 185654.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Method one:&lt;BR /&gt;Whilst I agree with&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/220699"&gt;@abacon&lt;/a&gt;&amp;nbsp;that Alteryx does not appear to support word documents natively, there is a way around this.&amp;nbsp;You have to configure the Alteryx input data tool to read in your word document as a zip file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From there you will need to open up option 3 "File in Archive" and select the following&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-06-06 185415.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/405480i7B3952F8411978EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-06-06 185415.png" alt="Screenshot 2025-06-06 185415.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Finally, please make sure you have selected "Return outer xml". This should allow you to read in the word documents XML as seen below., You will then need to use some further logic to re-tabulate your results. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Input Config.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/405485i6CB13D65C3CEF0D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Input Config.png" alt="Input Config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Method 2:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There are some python libraries which are designed to specifically help extract out tables from word documents. I have used the following code to help me do this  (the black box simply covers the file path):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-06-06 185812.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/405484i7472F7033AA406C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-06-06 185812.png" alt="Screenshot 2025-06-06 185812.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Once you have done this, you can do further transformation in Alteryx before outputting your results to an excel file.&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-06-06 190215.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/405487i0F3AB76A1494ED8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-06-06 190215.png" alt="Screenshot 2025-06-06 190215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;One thing to note is that you will need to install a python-docx package (all from within the python tool). In order to do this you may need to open Alteryx as an administrator - hence my screenshots switched from dark mode to light mode!&lt;BR /&gt;&lt;BR /&gt;I have attached the workflow below, If you have any questions please just let me know.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards - Pilsner&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 18:09:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1396023#M346192</guid>
      <dc:creator>Pilsner</dc:creator>
      <dc:date>2025-06-06T18:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: WORD DOCUMENT TEMPLATE INPUT</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1396478#M346303</link>
      <description>&lt;P class="lia-align-left"&gt;Thanks&lt;/P&gt;&lt;P class="lia-align-left"&gt;Please do so i believe it can be done.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 07:57:53 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1396478#M346303</guid>
      <dc:creator>Gratus_tz</dc:creator>
      <dc:date>2025-06-10T07:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: WORD DOCUMENT TEMPLATE INPUT</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1396487#M346305</link>
      <description>&lt;P&gt;Hi Pilsner&lt;/P&gt;&lt;P&gt;So i appreciate for your recommended solution and I think it will be of a great help as i am looking into it.&lt;/P&gt;&lt;P&gt;Though i have a Question there and i would like to ask referring the Document that I have.&lt;BR /&gt;So the Document is the Letter of Engagement which we usually send them to the Client where the main reason for asking the Solution to Approach is that&amp;nbsp; I want to create a&amp;nbsp; Workflow that has the Letter Format Installed in and just to Put the Interactive tools in a Specific Dynamic changes needed on the Letter such as Client Names, Contacts, Address extra where the users will be able to put the Dynamic Inputs and hence get the Output of Formatted Letters with his/her Inputs set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards - Gratus Tz&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 08:15:52 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1396487#M346305</guid>
      <dc:creator>Gratus_tz</dc:creator>
      <dc:date>2025-06-10T08:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: WORD DOCUMENT TEMPLATE INPUT</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1401726#M347680</link>
      <description>&lt;P&gt;Older post but I'll add: To do this, you would either need to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Play with the OOXML of the word doc,&lt;/LI&gt;&lt;LI&gt;find a python/R/powershell etc package that specialises in this (FPDF or something), or&lt;/LI&gt;&lt;LI&gt;The better solution, recreate the entire doc from Alteryx, thereby you can have variables that change and the whole doc gets created, rather than trying to fill variables in something that is not designed for that.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 11 Jul 2025 01:33:36 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1401726#M347680</guid>
      <dc:creator>KGT</dc:creator>
      <dc:date>2025-07-11T01:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: WORD DOCUMENT TEMPLATE INPUT</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1402521#M347918</link>
      <description>&lt;P&gt;Thanks For Reconsidering sharing your Ideas and thoughts and for sure I did find the Solution to the Query where i used Pyhton Tool to write Codes that gets the Letter to from the Specific Path and do the Dynamic changes by using the Text Input which i used the interface and Action tools to connect from it inorder to Input the Dynamic changes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the Code that I used&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from ayx import Alteryx&lt;BR /&gt;import pandas as pd&lt;BR /&gt;from docx import Document&lt;BR /&gt;from datetime import datetime&lt;BR /&gt;import os&lt;/P&gt;&lt;P&gt;# Step 1: Read input&lt;BR /&gt;df = Alteryx.read("#1")&lt;/P&gt;&lt;P&gt;# Step 2: Handle empty input&lt;BR /&gt;if df.empty:&lt;BR /&gt;output_df = pd.DataFrame({"Path": ["[Placeholder] File path will appear after actual input."]})&lt;BR /&gt;Alteryx.write(output_df, 1)&lt;BR /&gt;else:&lt;BR /&gt;# Step 3: Safe value extraction function&lt;BR /&gt;def safe_value(val):&lt;BR /&gt;return "" if pd.isna(val) else str(val)&lt;/P&gt;&lt;P&gt;client_name = safe_value(df["Client Name"].iloc[0])&lt;BR /&gt;letter_date = safe_value(df["Letter Date"].iloc[0])&lt;BR /&gt;ref_no = safe_value(df["Reference No"].iloc[0])&lt;BR /&gt;attention_name = safe_value(df["Attention name"].iloc[0])&lt;BR /&gt;amount = safe_value(df["Amount"].iloc[0])&lt;BR /&gt;currency = safe_value(df["Currency"].iloc[0])&lt;BR /&gt;po_box = safe_value(df["P.O Box Number"].iloc[0])&lt;BR /&gt;region = safe_value(df["Region"].iloc[0])&lt;BR /&gt;country = safe_value(df["Country"].iloc[0])&lt;BR /&gt;email = safe_value(df["Email"].iloc[0])&lt;BR /&gt;end_date = safe_value(df["End Date"].iloc[0])&lt;BR /&gt;period_end = safe_value(df["Period End"].iloc[0])&lt;BR /&gt;standards = safe_value(df["Standards"].iloc[0])&lt;BR /&gt;professional_fees_i = safe_value(df["Professional fees"].iloc[0])&lt;BR /&gt;professional_fees_ii = safe_value(df["Professional fees ii)"].iloc[0])&lt;BR /&gt;professional_fees_iii = safe_value(df["Professional fees iii)"].iloc[0])&lt;BR /&gt;title_name = safe_value(df["Title"].iloc[0])&lt;/P&gt;&lt;P&gt;# Step 4: Format dates using pd.to_datetime to handle extra time part&lt;BR /&gt;if letter_date:&lt;BR /&gt;formatted_date = pd.to_datetime(letter_date).strftime("%d %B %Y")&lt;BR /&gt;else:&lt;BR /&gt;formatted_date = ""&lt;/P&gt;&lt;P&gt;if end_date:&lt;BR /&gt;formatted_end_date = pd.to_datetime(end_date).strftime("%d %B %Y")&lt;BR /&gt;else:&lt;BR /&gt;formatted_end_date = ""&lt;/P&gt;&lt;P&gt;# Step 5: Define paths&lt;BR /&gt;output_filename = f"LOE_{client_name.replace(' ', '_')}.docx"&lt;BR /&gt;output_path = rf"\\shareddata\CommonDocuments\Alteryx documents\LOE\{output_filename}"&lt;BR /&gt;template_path = r"\\shareddata\CommonDocuments\Alteryx documents\LOE\Letter of Engagement for Company.docx"&lt;/P&gt;&lt;P&gt;# Step 6: Test access to template&lt;BR /&gt;try:&lt;BR /&gt;with open(template_path, 'rb') as f:&lt;BR /&gt;print(f"&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Template file opened successfully at: {template_path}")&lt;BR /&gt;except Exception as e:&lt;BR /&gt;raise FileNotFoundError(f"&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; Could not access template. Reason: {e}")&lt;/P&gt;&lt;P&gt;# Step 7: Load document and replace placeholders using runs&lt;BR /&gt;doc = Document(template_path)&lt;/P&gt;&lt;P&gt;placeholder_map = {&lt;BR /&gt;"[Client Name]": client_name,&lt;BR /&gt;"[Letter Date]": formatted_date,&lt;BR /&gt;"[Reference No]": ref_no,&lt;BR /&gt;"[Attention name]": attention_name,&lt;BR /&gt;"[Amount]": amount,&lt;BR /&gt;"[Currency]": currency,&lt;BR /&gt;"[P.O Box No]": po_box,&lt;BR /&gt;"[Region]": region,&lt;BR /&gt;"[Country]": country,&lt;BR /&gt;"[Email]": email,&lt;BR /&gt;"[End Date]": formatted_end_date,&lt;BR /&gt;"[Period End]": period_end,&lt;BR /&gt;"[Standards]": standards,&lt;BR /&gt;"[Professional fees]": professional_fees_i,&lt;BR /&gt;"[Professional fees ii)]": professional_fees_ii,&lt;BR /&gt;"[Professional fees iii)]": professional_fees_iii,&lt;BR /&gt;"[Title]":title_name,&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;for para in doc.paragraphs:&lt;BR /&gt;for run in para.runs:&lt;BR /&gt;for placeholder, value in placeholder_map.items():&lt;BR /&gt;if placeholder in run.text:&lt;BR /&gt;run.text = run.text.replace(placeholder, value)&lt;/P&gt;&lt;P&gt;doc.save(output_path)&lt;/P&gt;&lt;P&gt;# Step 8: Output plain UNC file path&lt;BR /&gt;output_df = pd.DataFrame({"Path": [output_path]})&lt;BR /&gt;Alteryx.write(output_df, 1)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 06:03:55 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1402521#M347918</guid>
      <dc:creator>Gratus_tz</dc:creator>
      <dc:date>2025-07-16T06:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: WORD DOCUMENT TEMPLATE INPUT</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1402526#M347920</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/632641"&gt;@Gratus_tz&lt;/a&gt;&amp;nbsp;if you save it as a pdf you can bring it via the intelligence suite (and have access toi it) , would that be possible&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 07:35:46 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1402526#M347920</guid>
      <dc:creator>aatalai</dc:creator>
      <dc:date>2025-07-16T07:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: WORD DOCUMENT TEMPLATE INPUT</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1403659#M348183</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/146066"&gt;@aatalai&lt;/a&gt;&amp;nbsp;so we haven't paid for intelligence suite License in our side but hopefully it can be done&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 13:12:26 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/WORD-DOCUMENT-TEMPLATE-INPUT/m-p/1403659#M348183</guid>
      <dc:creator>Gratus_tz</dc:creator>
      <dc:date>2025-07-22T13:12:26Z</dc:date>
    </item>
  </channel>
</rss>

