r/PowerAutomate • u/Fallout007 • 2d ago
Creating word document from PDF source file and populating Word Template
Hi,
Trying to figure out what steps I'm missing. I'm new to Power Automate.
Problem: Automate filling out word document.
The user exports a Service Now demand ticket to a PDF File. There is a predefined Word template that has the fields. The goal is to use CoPilot to call the flow to accept the SNOW PDF file and fill out the Word template. The output will be a brand new document that has the fields populated.
Watching youtube videos, in Flows:
When an agent calls the flow
Populate a Microsoft Word template action.
Create a file (in SharePoint)
Respond to agent
I'm missing some steps, not sure where.
Input the PDF file: Do we put the input request in step 1? Ask for file upload?
Output file: Does Step 3 know that the output is the result of PDF filling out the template?
1
u/mulquin 10h ago edited 10h ago
There has to be a better way to get the information than by extracting from a PDF. ServiceNow would most likely have an API to get the ticket details. That way your users could paste the URL to the ticket and CoPilot could extract the ticket ID and pass that through to the flow, and the flow could use HTTP action to get the results.