If your team maintains structured reference data, such as control registers, release logs, price lists, or regional contact sheets, in an Excel file on SharePoint, you can use Power Automate to keep the matching Document360 article up to date automatically. Whenever the Excel file changes, Power Automate reads the table, converts it to HTML, writes it into the article as a new draft version, and publishes that version. This article walks you through building the flow with the Document360 API v3.
When to use this integration
- Data owners work in Excel - Your team maintains reference data in Excel because that's where the people who own it already work, but it also needs to be searchable and auditable as a knowledge base article, not handed to readers as a spreadsheet.
- No manual copy-paste - Source-data changes are reflected in the matching Document360 article automatically.
- Predictable, table-shaped data - Your data changes on a predictable cadence and is already organized as a clean table. This pattern isn't built for high-frequency or real-time updates.
How it works
Whenever the source workbook changes, the flow performs these steps:
- Read the table rows from the Excel file.
- Reshape the rows, dropping connector metadata and converting Excel dates.
- Convert the rows to an HTML table.
- Update the article. This call forks the published article into a new draft and writes the table into it.
- Publish the new version.
The two Document360 API calls do all the work. The result is a published article containing a clean HTML table, refreshed on every workbook change, with one entry in version history per sync.
Before you begin
You'll need the following in place:
| Requirement | Notes |
|---|---|
| A Document360 API key | Create one from Settings > Knowledge base portal > API keys > Create API key. Set Portal role to Owner and Content role to Editor. The default content role of None isn't sufficient to update and publish articles. The key is sent in the X-API-Key header. A legacy API token (v2) doesn't work with the v3 API. |
| A published article | The target article must already have at least one published version. The update call fails with a 422 error if nothing has been published yet, so create the article and publish it once by hand before building the flow. |
| An Excel workbook in SharePoint or OneDrive | The data must be in a named Excel table (Insert > Table), not a plain cell range. Power Automate's "List rows present in a table" action can only read named tables. |
| A Power Automate license that allows the HTTP action | The HTTP action used to call the Document360 API is a premium connector. |
The API is served from a regional host. Use the one that matches where your project is hosted. The examples in this article use the Europe host.
| Region | Base URL |
|---|---|
| Europe | https://apihub.document360.io |
| United States | https://apihub.us.document360.io |
| Canada | https://apihub.ca.document360.io |
Every endpoint is project-scoped and follows the pattern https://<host>/v3/projects/{project_id}/{resource}. Authentication uses the X-API-Key request header. The API also accepts the key as Authorization: Bearer, but this article uses X-API-Key throughout.

Collect your IDs
Gather these identifiers before building the flow. They're easier to find up front than mid-build.
| ID | Where to find it |
|---|---|
project_id |
The first GUID in the portal URL when your project is open: portal.document360.io/<project_id>/document/.... |
workspace_id |
Call GET /v3/projects/{project_id}/workspaces. Make sure you pick the workspace the article lives in, not the project's default. |
article_id |
The GUID in the portal URL when the article is open, or from the article list. The list endpoint returns 100 articles per page, so on a large project fetch the article by ID rather than paging to find it. |
user_id |
The ID of the team member the sync acts as. It's required by the update call when auto_fork is used with an API key. Use a dedicated service account rather than a personal login, so the flow doesn't break if the person who set it up leaves or changes roles. The account must be active and have edit permission on the article. To find the ID, retrieve it through the users API, or open the user in the portal and copy the ID from the browser URL. A user ID is a 24-character hexadecimal value, not a GUID. |
Article status in API v3 responses is a word, draft or published, not a numeric code.
Step 1 - Trigger on the workbook changing
- In Power Automate, create a new automated cloud flow.
- Add the SharePoint trigger When an item or a file is modified.
- In Site Address, enter the SharePoint site that holds the workbook.
- In Library Name, select the document library, usually Documents.
- Open Advanced parameters, select Folder, and choose the folder that contains the workbook. This stops unrelated edits elsewhere in the library from firing the sync.

The trigger and the next step must point to the same file. A OneDrive for Business file can be reached either through the SharePoint trigger, using its site URL (https://<tenant>-my.sharepoint.com/personal/<user>), or through the OneDrive trigger. Pick one and make sure the next step points to the same place. A trigger watching a team SharePoint site never fires for a file that lives in OneDrive.
Step 2 - Read the table
- Add the Excel Online (Business) action List rows present in a table.
- In Location and Document Library, select where the workbook lives.
- In File, select the workbook.
- In Table, select the named table inside it.
This action returns one object per row, under a value array. Each object carries your columns plus two fields added by the connector, @odata.etag and ItemInternalId. Step 3 removes them.

Step 3 - Reshape the rows with Select
Add the Data Operation action Select between List rows present in a table and Create HTML table. This step is required. Without it, the published table includes two meaningless columns and shows dates as five-digit numbers.
Select does two jobs:
- Drops the connector metadata. Only the columns you name survive, so
@odata.etagandItemInternalIddisappear. - Converts Excel date serials. Excel passes dates as a day count from 30 December 1899, so a cell showing 04 Sep 2026 arrives as
46269.
- In From, select the value output of List rows present in a table.
- In Map, add one row for each column you want published. The key becomes the table header exactly as you type it. The value is an expression.
| Key | Value |
|---|---|
| Control ID | item()?['Control ID'] |
| Control Name | item()?['Control Name'] |
| Owner Team | item()?['Owner Team'] |
| Framework | item()?['Framework'] |
| Status | item()?['Status'] |
| Last Reviewed | if(empty(item()?['Last Reviewed']), '', formatDateTime(addDays('1899-12-30', int(item()?['Last Reviewed'])), 'dd MMM yyyy')) |
The if(empty(...)) wrapper matters because int() throws an error on a blank cell, which fails the whole run.
Enter the expressions correctly
This is where builds most often go wrong, and it fails silently. Every action reports success and the API returns 200, but the published article contains the expression text instead of your data.
Typing an expression straight into a Map value box stores it as a literal string. It's only treated as an expression if Power Automate records it with a leading @. There are two reliable ways to enter them:
- Expression editor. Click into the value box, then click the fx button beside it. Enter the expression in the popup and confirm it. The button reads Add for a new expression and Update when you reopen an existing one. A correctly entered value displays as a pill with an fx icon, not as plain black text.
- JSON view. Click the toggle at the right of the Map header to switch the whole map to a text area, then paste all entries at once, with each value prefixed by
@:
{
"Control ID": "@item()?['Control ID']",
"Control Name": "@item()?['Control Name']",
"Owner Team": "@item()?['Owner Team']",
"Framework": "@item()?['Framework']",
"Status": "@item()?['Status']",
"Last Reviewed": "@if(empty(item()?['Last Reviewed']), '', formatDateTime(addDays('1899-12-30', int(item()?['Last Reviewed'])), 'dd MMM yyyy'))"
}
After using JSON view, check the From field of the next action. Switching the map in and out of JSON view can disturb downstream token references.
In the designer, a correctly entered map shows each value as a token pill: a colored chip for a straight column reference, and a pink fx pill for a longer expression. Values that still show as plain black text haven't been parsed as expressions and will publish literally.


Step 4 - Create the HTML table
- Add the Data Operation action Create HTML table.
- In From, select the output of the Select action, not the value of List rows present in a table. The token is purple (a Data Operation reference) rather than green. Its label varies between designer versions, so you may see it as Output or, once placed, Body.
- Leave Columns on Automatic. Select has already fixed the column set and order.

To confirm the source, open the action's Code view tab. from should read @body('Select'). A green token means the action is still reading the List rows output, and the Select step has no effect.
Step 5 - Update the article
Add an HTTP action. This single call forks the published article into a new draft and writes the table into it.
Method: PATCH
URI: https://apihub.document360.io/v3/projects/{project_id}/articles/{article_id}
Headers: X-API-Key: {your API key}
Content-Type: application/json
Body: {
"content": "{Output token from Create HTML table}",
"auto_fork": true,
"user_id": "{your user_id}"
}

Keep these points in mind:
- The update is partial.
titleandcategory_idaren't required. Leave them out unless you intend to change them. auto_forkreplaces a separate fork call. Settingauto_forktotruecreates the new draft as part of the update, so you don't call the fork endpoint.user_idis required here. Omitting it whenauto_forkistruereturns a422error.- Substitute the real GUIDs into the URI. A literal
{article_id}left in place returns a404error with the placeholder text echoed back. - Send the HTML in
content. The response returns both acontentfield, converted to Markdown, and anhtml_contentfield holding the HTML, buthtml_contentis a response field only and isn't accepted as input.
A successful call returns 200 with the new draft in data, including the version_number that Step 6 needs.
Braces in token syntax. An expression that supplies a whole value is written quoted with no braces, for example "@body('HTTP_2')?['data']?['version_number']". An expression embedded inside a longer string takes braces, for example "content": "@{body('Create_HTML_table')}". Getting this wrong sends either a literal string or an invalid body. If a call behaves oddly, check the action's Code view.
Step 6 - Publish the new version
Add a second HTTP action.
Method: POST
URI: https://apihub.document360.io/v3/projects/{project_id}/articles/{article_id}/publish
Headers: X-API-Key: {your API key}
Content-Type: application/json
Body: {
"user_id": "{your user_id}",
"workspace_id": "{your workspace_id}",
"version_number": "{expression, see below}",
"message": "Automated sync via Power Automate"
}
version_number must come from the previous step's response. Don't hard-code it, because it increments on every sync. Enter it as an expression:
body('HTTP_2')?['data']?['version_number']
Replace HTTP_2 with your own action's internal name, where spaces become underscores. The expression is quoted and takes no braces. The value reaches the API as a string, so no int() cast is needed. The message field becomes the version history comment.

Don't pick Version number from the dynamic content list. Power Automate offers same-named tokens from the SharePoint trigger and from other actions, and they're the wrong value. Use the expression box.
A successful publish returns 200 with a short body containing success: true and a request_id. There's no data object, so the response doesn't confirm the resulting article. Check it as described in the next section.
Verify the result
A green run isn't proof of a correct article. Every action can report success while the published content is wrong, so check the output as well as the status.
- Check the update response. In the flow's run history, open the update action's outputs. Confirm the status is
200,data.version_numberhas incremented, anddata.statusreadsdraft. - Confirm the publish landed. The publish response doesn't report the resulting state, so make a separate call:
GET https://apihub.document360.io/v3/projects/{project_id}/articles/{article_id}.public_versionshould now equal theversion_numberyou published. - Look at the article. Open it in the portal or on the published site and read the table itself. Check for the expected number of rows, the intended columns and no others, and dates shown as dates rather than five-digit numbers.

Each sync adds an entry to the article's version history with your message text, which gives you a per-run audit trail. To view it, open the article, click the More (⋯) icon in the article header, and select Revision history.

Troubleshooting quick reference
The v3 API returns structured errors. The detail field usually names the problem directly, so read it before anything else.
| Symptom | Cause | Fix |
|---|---|---|
Published table shows item()?['Column'] in every cell |
Map values were stored as literal text, not expressions. Every step reports success and the API returns 200. |
Re-enter each value through the fx editor, or use JSON view with an @ prefix on each value. See Step 3. |
Published table has extra @odata.etag and ItemInternalId columns |
Create HTML table is reading List rows directly. | Point its From field at the Select action's output. |
| Dates show as five-digit numbers | Excel date serials passed through unconverted. | Add the formatDateTime(addDays('1899-12-30', int(...))) conversion in Select. |
400: "A user is required to fork this article" |
The separate fork endpoint was called with an API key. | Don't call the fork endpoint. Use auto_fork: true on the update call. |
422: user_id required when auto_fork is true |
auto_fork was sent without user_id. |
Add user_id to the update body. |
422: no published version |
The article has never been published, so there's nothing to fork from. | Publish the article once manually, then re-run the flow. |
409: a draft already exists |
A previous run failed after forking and left a draft open. | Publish or discard the draft in the portal, then re-run the flow. |
404 with a placeholder in the message |
{article_id} or {project_id} was left literal in the URI. |
Substitute the real GUIDs. |
401 or 403 |
A legacy API token was used instead of an API key, or the key lacks publish rights. | Use an API key in the X-API-Key header, with the Owner portal role and Editor content role. |
404 or 401 on every call, with correct IDs and a valid key |
The wrong regional host. A project hosted in the US or Canada isn't reachable on the Europe host. | Switch the URI to the host for your region. See Before you begin. |
| The flow never triggers | The trigger watches SharePoint, but the workbook is in OneDrive, or the reverse. | Match the trigger connector to where the file actually lives. |
Limitations
- No native Power Platform connector. This pattern uses the generic HTTP action, not a certified Document360 connector.
- The article must have been published once. The update call can't fork an article that has no published version.
- The article body is replaced on every sync. Use an article dedicated to this data, not one that also holds other content.
- Not built for real-time updates. A file save triggers the flow. It isn't designed for high-frequency or streaming changes.
- Rate limits apply. Each sync makes two API calls. Responses carry
X-RateLimit-LimitandX-RateLimit-Remainingheaders, so check your remaining headroom before pointing a flow at a very large or frequently edited workbook. See API keys for details. - Requires a Power Automate license that allows premium connectors, because the HTTP action is a premium action.
Alternatives to this automation layer
The same Document360 API calls can be driven from more than one place, depending on where your organization wants the automation to live:
- If your writers already use an AI assistant, Document360's MCP server can perform these operations directly, without a separate automation platform.
- Azure Logic Apps make the same REST calls but run inside an Azure subscription instead of the Power Platform.
- A webhook, custom script, or direct API call gives you full control outside either platform.
The underlying API calls are the same either way. The choice comes down to where the automation should live and who maintains it.