{"id":4929,"date":"2023-04-30T18:39:31","date_gmt":"2023-04-30T18:39:31","guid":{"rendered":"https:\/\/powergi.net\/?p=4929"},"modified":"2025-10-24T17:34:42","modified_gmt":"2025-10-24T17:34:42","slug":"power-automate-fill-word-template","status":"publish","type":"post","link":"https:\/\/powergi.net\/de\/blog\/power-automate-fill-word-template\/","title":{"rendered":"Fill out dynamic MS Word templates with Power Automate"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"4929\" class=\"elementor elementor-4929\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d15cd1f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d15cd1f\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ab5e686\" data-id=\"ab5e686\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-012408f elementor-widget elementor-widget-text-editor\" data-id=\"012408f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4><b>Our use case:<\/b><\/h4><ol><li>A word file needs to be generated everytime a new application is submitted \u2013 with some fields that come from the application form such applicant\u2019s first name and last name.\u00a0<\/li><li>Someone reviews the request, performs manual updates to the file and <a href=\"https:\/\/powergi.net\/de\/blog\/lange-laufende-genehmigungsanfragen-in-power-automate-mit-uberschreiben-des-28-tage-timeouts\/\"><strong>sends it for approval<\/strong><\/a>.<\/li><li>When the file is submitted for approval, 2 more fields in the application word file must be filled out and this file needs another update.\u00a0<\/li><\/ol><p>The template needs to be generated and our automation will fill out the initial fields when the application is created, but after approval we need to write into 2 additional fields (<a href=\"https:\/\/powergi.net\/de\/blog\/dynamische-und-sequentielle-genehmigungen-in-power-automate\/\"><strong>Genehmigung<\/strong><\/a> details and due date) on top of this existing file.<\/p><p><b style=\"color: var(--ast-global-color-2); font-family: Poppins, sans-serif; font-size: 1.33333rem; font-style: inherit; background-color: var(--ast-global-color-5);\">Solution<\/b><\/p><p>For teams scaling document automation, partnering with <a href=\"https:\/\/powergi.net\/de\/power-apps-consulting-services\/\"><strong>business application development services<\/strong><\/a> can help align templates, governance, and integrations with broader enterprise standards.<\/p><div id=\"seology-cta-1\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"7276\" class=\"elementor elementor-7276\" data-elementor-post-type=\"elementor_library\">\n\t\t\t<div class=\"elementor-element elementor-element-7e3f164 e-con-full e-flex e-con e-parent\" data-id=\"7e3f164\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"background_background\":\"classic\",\"jet_parallax_layout_list\":[]}'>\n\t\t<div class=\"elementor-element elementor-element-9078c9f e-con-full e-flex e-con e-child\" data-id=\"9078c9f\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t<div class=\"elementor-element elementor-element-7b99949 elementor-widget elementor-widget-heading\" data-id=\"7b99949\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Von der Vision zur Umsetzung<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8e61db5 elementor-widget elementor-widget-heading\" data-id=\"8e61db5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Ob Sie gerade erst mit der Automatisierung beginnen oder diese ausbauen, wir helfen Ihnen, Ihre Ideen in wirkungsvolle L\u00f6sungen zu verwandeln.<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-a578907 e-flex e-con-boxed e-con e-child\" data-id=\"a578907\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e8c827b elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"e8c827b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"#ctc_chat\">\n\t\t\t<i aria-hidden=\"true\" class=\"fab fa-whatsapp\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d834237 elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"d834237\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"https:\/\/powergi.net\/de\/contact\/\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-envelope\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<\/div><ul><li>Create a MS <a href=\"https:\/\/powergi.net\/de\/blog\/populate-word-template-power-automate\/\"><strong>Word template<\/strong><\/a> with the fields you need to fill out<\/li><li>Create a SharePoint list that will be used to record applicant\u2019s information<\/li><\/ul><div><img decoding=\"async\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/06\/migrated-img-4929-6a4450f730a0a.png\" alt=\"\"><\/div><div><h4>\u00a0<\/h4><h2><b style=\"color: var(--ast-global-color-2); font-family: Poppins, sans-serif; font-size: 1.2rem; font-style: inherit; background-color: var(--ast-global-color-5);\">Workflow #1. When application record is created<br><\/b><b><\/b><\/h2><h4>\u00a0<\/h4><h3><b>Step 1. Trigger<\/b><\/h3><\/div><div><img decoding=\"async\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/06\/migrated-img-4929-6a4450f7662de.png\" alt=\"\"><b><br><\/b><\/div><h3><b>Step 2. Populate Word template with the initial fields<br><\/b><img decoding=\"async\" style=\"font-style: inherit; font-weight: inherit; font-family: var( --e-global-typography-text-font-family ), Poppins; background-color: var(--ast-global-color-5);\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/07\/migrated-img-4929-6a4450f78b927.webp\" alt=\"\"><\/h3><p>Achieving seamless document automation is crucial for streamlining business workflows. As a Power Platform consultancy, we ensure your integration aligns with industry standards, enhancing both efficiency and compliance. Our <a href=\"https:\/\/powergi.net\/de\/microsoft-power-platform-consulting-services\/\"><strong>Power Platform consulting service<\/strong><\/a> elevates your automation strategy, allowing your team to focus on core business objectives with confidence.<\/p><h3><span style=\"background-color: var(--ast-global-color-5); font-family: var( --e-global-typography-text-font-family ), Poppins; font-style: inherit;\"><b>Step 3. Create template file and save in SharePoint<\/b><\/span><\/h3><p><span style=\"font-style: inherit; font-weight: inherit; font-family: var( --e-global-typography-text-font-family ), Poppins; background-color: var(--ast-global-color-5);\">Save the file with the ID as File Name.<\/span><img decoding=\"async\" style=\"font-style: inherit; font-weight: inherit; font-family: var( --e-global-typography-text-font-family ), Poppins; background-color: var(--ast-global-color-5);\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/06\/migrated-img-4929-6a4450f7dccd1.png\" alt=\"\"><\/p><h4>\u00a0<\/h4><h4>\u00a0<\/h4><h2>Workflow #2. When application is approved<\/h2><h3><b>Step 1. Trigger<\/b><\/h3><p>Make sure to add a contidional in the Trigger settings, to avoid this automation running for undesired scenarios.<\/p><p><img decoding=\"async\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/06\/migrated-img-4929-6a4450f818315.png\" alt=\"\"><\/p><p><img decoding=\"async\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/06\/migrated-img-4929-6a4450f847aa1.png\" alt=\"\"><\/p><p>Additionally, if your organization relies on automated document generation solutions, integrating with <a href=\"https:\/\/powergi.net\/de\/microsoft-power-platform-consulting-services\/\"><strong>Microsoft Power Apps consulting services<\/strong><\/a> can enhance your workflow efficiency and customization capabilities.<\/p><h3><b>Step 2. Send approval and wait for outcome<\/b><\/h3><p><img decoding=\"async\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/06\/migrated-img-4929-6a4450f87f73c.png\" alt=\"\"><\/p><h3><b>Step 3. Update the existing template using file Path and Fields ID.<\/b><br><img decoding=\"async\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/06\/migrated-img-4929-6a4450f88ebc0.png\" alt=\"\"><\/h3><h2>How to find the fields ID?<\/h2><p>Create an empty step to populate the Word template, making sure you select the base template. Click on the right corner dots and then <b>Peek code<\/b>.<br><img decoding=\"async\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/06\/migrated-img-4929-6a4450f8ccb30.png\" alt=\"\"><\/p><p>You will see below code, just look for the text \u201c<span style=\"color: #a31515; background-color: #fffffe; font-family: Consolas, 'Courier New', monospace; font-size: 13px; white-space: pre;\"><b>dynamicFileSchema<\/b><\/span><span style=\"font-style: inherit; font-weight: inherit; font-family: var( --e-global-typography-text-font-family ), Poppins; background-color: var(--ast-global-color-5);\">\u201d and find the number\/id that belongs to the fields you are looking to dynamically populate.<\/span><\/p><p><img decoding=\"async\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/07\/migrated-img-4929-6a4450f9144ee.webp\" alt=\"\"><\/p><div id=\"seology-cta-2\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"7531\" class=\"elementor elementor-7531\" data-elementor-post-type=\"elementor_library\">\n\t\t\t<div class=\"elementor-element elementor-element-7e3f164 e-con-full e-flex e-con e-parent\" data-id=\"7e3f164\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"background_background\":\"classic\",\"jet_parallax_layout_list\":[]}'>\n\t\t<div class=\"elementor-element elementor-element-9078c9f e-con-full e-flex e-con e-child\" data-id=\"9078c9f\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t<div class=\"elementor-element elementor-element-7b99949 elementor-widget elementor-widget-heading\" data-id=\"7b99949\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Sind Sie bereit, die Freude an der Automatisierung zu entdecken?<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8e61db5 elementor-widget elementor-widget-heading\" data-id=\"8e61db5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Ob Sie ein Projekt im Sinn haben oder einfach nur wissen m\u00f6chten, wie wir Ihnen helfen k\u00f6nnen, wir freuen uns auf ein Gespr\u00e4ch<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-a578907 e-flex e-con-boxed e-con e-child\" data-id=\"a578907\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e8c827b elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"e8c827b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"#ctc_chat\">\n\t\t\t<i aria-hidden=\"true\" class=\"fab fa-whatsapp\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d834237 elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"d834237\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"https:\/\/powergi.net\/de\/contact\/\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-envelope\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<\/div><p>Finally, create a JSON structure like below, using the ID as the attribute names<br><img decoding=\"async\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/06\/migrated-img-4929-6a4450f940237.png\" alt=\"\"><\/p><h3><b>Step 4. Create file with new input<\/b><\/h3><p>For this example, we\u2019re saving this in the \u201cApproved\u201d folder.<\/p><p><img decoding=\"async\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/06\/migrated-img-4929-6a4450f96fc61.png\" alt=\"\"><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7756a8f elementor-widget elementor-widget-heading\" data-id=\"7756a8f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Watch our step-by-step video<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3b5eed7 elementor-widget elementor-widget-video\" data-id=\"3b5eed7\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings='{\"youtube_url\":\"https:\\\/\\\/www.youtube.com\\\/watch?v=a2C7RzrWw6I\",\"video_type\":\"youtube\",\"controls\":\"yes\"}' data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Our use case: A word file needs to be generated everytime a new application is submitted &#8211; with some fields that come from the application form such applicant&#8217;s first name and last name.\u00a0 Someone reviews the request, performs manual updates to the file and sends it for approval. When the file is submitted for approval, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":4944,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"glossary_letter":"","footnotes":""},"categories":[85,118],"tags":[],"class_list":["post-4929","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-power-automate-cat","category-sharepoint-cat"],"glossary_letter":null,"rank_math_title":null,"rank_math_description":null,"rank_math_focus_keyword":null,"_links":{"self":[{"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/posts\/4929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/comments?post=4929"}],"version-history":[{"count":0,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/posts\/4929\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/media\/4944"}],"wp:attachment":[{"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/media?parent=4929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/categories?post=4929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/powergi.net\/de\/wp-json\/wp\/v2\/tags?post=4929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}