Forum Discussion
Vaibhavv
May 19, 2026Tin Contributor
Populating word template stored in Organizational Asset Library (OAL) using Power Automate
The objective is to implement an automated document generation solution that leverages the Microsoft SharePoint Organizational Asset Library (OAL) to provide users with standardized Word templates. These templates must dynamically self-populate with real-time identity data (Name, Email, Job Title, and Department, for now which can be extended) sourced from Microsoft Entra ID (formerly Azure Active Directory) upon instantiation.
In other words, how to use a Word Template stored in Microsoft SharePoint Organizational Asset Library to populate with his or her own user information like Name, Email, Job Title, Department etc getting fetched from Azure Active Directory, whenever that user opens the template by going to File -> New -> Selecting Organization Tab and selecting the template.
How can we populate this template using Power Automate?
2 Replies
- AbiramCopper Contributor
Hi Vaibhavv,
The key limitation first: Power Automate can't run when a user picks a template via File > New > Organization in desktop Word. There's no trigger for "template opened", so a flow can't inject data into the document at that moment.
What does work well is to flip the approach: let the user start a flow, and have the flow generate the document for them.
Recommended pattern:
1. Keep a .docx version of the template (with plain text content controls for Name, Email, Job Title, Department) in a SharePoint library. The "Populate a Microsoft Word template" action works with .docx, not .dotx, so you can keep the .dotx in the OAL for normal use and a .docx copy for automation.
2. Create an instant flow (button in SharePoint, Teams, or a Power Apps button) with these actions:
- Office 365 Users > Get my profile (V2), which returns displayName, mail, jobTitle and department from Entra ID
- Word Online (Business) > Populate a Microsoft Word template, mapping each content control to the profile fields
- Create file in the user's OneDrive (or a SharePoint folder), e.g. Name_Template_Date.docx
- Send the user a link to the new file, or open it from Power Apps
3. To extend later, add more fields from Get user profile (V2), or call Microsoft Graph for custom attributes.
Notes:
- "Populate a Microsoft Word template" is a premium action, so check licensing.
- Each user runs the flow in their own context, so "Get my profile" always returns the person who triggered it.
If the requirement is strictly "auto-fill on File > New" with no extra click, that needs an Office Add-in (Office.js) or a macro-enabled template rather than Power Automate. Both have more deployment and security overhead, which is why the flow-based approach is usually the more practical choice.
- AmezingtechsataraIron Contributor
Yes, this is exactly what the Populate a Microsoft Word template action is built for, and the Organizational Asset Library part is the easy bit — the library is just a SharePoint document library with a special job, so the flow can point at the template file sitting in it the same way it would any other library.
The shape I'd build: start the flow however you want it triggered, then use the Office 365 Users connector's Get user profile action for whoever the document is for. That pulls DisplayName, Mail, Job Title and Department straight out of Entra ID, so there's nothing to type by hand. Then the Word Online connector's Populate a Microsoft Word template action, pointed at the template in the Organizational Asset Library, with each content control mapped to one of those profile fields. The populated file comes out as a new document, so save it with Create file into a document library or OneDrive, and if you need a PDF at the end, the Convert Word Document to PDF action does that in the same flow.
Two things to watch. The template has to be a Word document with proper content controls in it — add those from desktop Word's Developer tab, plain text won't map. And Populate a Microsoft Word template is a premium action, so the flow needs a premium Power Automate licence to run. Also worth knowing: when someone opens the template from File, New in Word, that's the Word side of the library doing its own thing. The flow route above is separate from that, so if you want the populated document generated automatically, trigger the flow from the list or a button rather than expecting Word's New dialog to run it.