Fill forms from Microsoft Power Automate
For teams on Microsoft 365 who want a flow (a new SharePoint list item, a Forms response, an approved request) to produce a filled government form. Pick the simple way unless you want searchable actions in the flow designer.
The simple way: an HTTP action and a hook
1. Make a hook for the form under Account → Automation: type the Form ID (for example bir-2307), a Name, and tap New hook. Copy the URL; it is shown once. 2. In your flow, add an HTTP action: - Method: POST - URI: the hook URL - Headers: Content-Type: application/json - Body: the values as JSON, one key per field name. The field names are in the hook's Column template (CSV). 3. The response is the filled PDF. Add a step after it to save it (OneDrive, SharePoint) or send it by email.
Many rows at once: send { "rows": [ … ] }. You get a job instead of a PDF, and the ZIP goes to the webhook you set on the hook.
The connector way: import the OpenAPI file
A custom connector gives the flow designer named actions with your API key behind them.
1. Make an API key under Account → API keys. 2. In Power Automate: Custom connectors → New custom connector → Import an OpenAPI file. 3. Upload power-automate.swagger.json (OpenAPI 2.0, the format the connector wizard reads). 4. On Security, the authentication is an API key sent in the X-Api-Key header. Create the connector, then a connection with your key.
The connector has five actions:
Action What it does --- --- Search fillable forms find a form id by name List a form's fields the field names, types and examples Fill a form → PDF one row → the filled PDF Fill many rows → ZIP job many rows → a job Batch job status poll the job until the ZIP is ready
Keep test keys (pktest…) for building: they are free and watermark their output. Switch the connection to a live key when the flow is ready.
More on keys, limits and errors: the developer docs.