User Guide
netDocShare Sync
Power Automate - Bidirectional (SharePoint - NetDocuments)
This Power Automate cloud flow keeps NetDocuments and SharePoint Online in sync. On a schedule, it reads a control list in SharePoint, and for each row it can create a SharePoint site library, create (or reuse) a NetDocuments Saved Search, and set up a sync job between the two - or remove an existing sync job. Each row's status is written back to the control list, so the flow is safe to re-run.
Follow these steps every time before you run the flow. You do not need to understand the internal logic - just set the values listed here.
These are the tiles at the top of the flow, in the order they appear. To change one: click the tile to expand it, edit the value in the input box, then click away. Remember to Save the flow when done.
|
Setting (tile) |
What it is / what to enter |
Update frequency |
|
licenseKey |
License key for the integration. Confidential. |
When renewed |
|
tenantID |
Your NetDocuments tenant (repository) identifier. |
Rarely |
|
savedSearchContainerId |
ID of the NetDocuments container (cabinet/workspace) where saved searches are created or reused. |
When target container changes |
|
spTenantUrl |
Your SharePoint Online tenant root URL |
Rarely |
|
Column |
Type |
Purpose / what to enter |
|
|
Single line of text |
User's email |
|
DisplayName |
Single line of text |
User's name |
|
Site_Created |
Yes/No |
Set NO |
|
Site_URL |
Single line of text |
The resulting SharePoint site/library URL (written back by the flow). |
|
Saved_Search_Created |
Yes/No |
Set Yes when the NetDocuments saved search is created or reused. |
|
Saved_Search_ID |
Single line of text |
ID of the created/reused saved search (written back). |
|
Job_ID |
Single line of text |
ID of the sync job. Written back on create; |
|
Remove_Job |
Yes/No |
Set No |
|
Last_Run_On |
Date and Time |
Timestamp of the last time the flow processed this row. |
|
Last_Error |
Multiple lines of text |
Error detail written when a step fails for this row. Blank = success. |
This section explains the flow's logic for administrators who maintain it. End users can skip this.
Runs over every item returned by Get items - PA-SavedSearch-Control.
|
Symptom |
Likely cause & fix |
|
Flow stops at Authorization Check (False branch) |
The running user is not authorized. Confirm the account and that 'HTTP - Get User isAuthorised' returns authorized = true. |
|
HTTP actions fail (401 / 403) |
Bad or expired apiKey, licenseKey, tenantID, or referer. Re-enter current credentials in the Compose tiles and Save. |
|
HTTP actions fail (404 / bad URL) |
Check baseUrl, spTenantUrl, and savedSearchContainerId for typos. |
|
Site library not created |
Connection lacks SharePoint permission, or the site/library already exists. Check the 'HTTP - Create Site Library' response. |
|
Saved search not created |
Verify savedSearchStartDate/EndDate format and that the container ID is valid. |
|
Sync job not created |
'Ready to create job' requires both siteOk and savedSearchOk true. Fix whichever earlier step failed, then re-run. |
|
Row shows an error after running |
Read Last_Error, fix the noted cause, and re-run - completed rows are skipped. |