SuperSync Files - How to Configure Dynamic SharePoint Connections
Overview
SuperSync Files allows administrators to dynamically determine the SharePoint Site, Document Library, and Base Folder used for each record type in NetSuite. This feature is particularly useful for organizations that manage multiple SharePoint sites (e.g., one per customer, subsidiary, or department) and need automatic routing of uploaded files to the correct location.
Dynamic path configuration uses field references and formulas on your NetSuite record types to construct the SharePoint URL components at runtime. This eliminates the need for static site or folder paths in the connection record and enables flexible, scalable document management across sites.
How It Works
During file sync or folder creation, SuperSync Files reads the dynamic configuration fields defined in the Record Type Config.
It looks for field values on the target record (e.g., Customer, Project, Vendor Bill) that correspond to:
Site Path (e.g.,
sites/<CustomerID>)Document Library
Base Folder
These values are combined with the domain and connection data from the Connection Record to form the full SharePoint path.
Example:
If your customer record has:
Site =
sites/3MDocument Library =
FilesDLBase Folder =
Honeycomb MFG
Then the resulting SharePoint path becomes:
https://<tenant>.sharepoint.com/sites/3M/FilesDL/Honeycomb MFG
If any of the optional fields (Library or Base Folder) are blank, SuperSync Files will default to:
Document Library: “Shared Documents”
Base Folder: Root of the selected library
If the Site Path field is blank or invalid, the operation will error out since the site is a required component.
Step-by-Step Setup
Create Custom Fields for Dynamic Values
Create freeform text fields on your record type (e.g., Customer) to store the SharePoint path components. if the Site Path field is blank or invalid, the operation will error out since the site is a required component.
Example:
Label: Files Dynamic Site
ID:
_files_dynamic_siteApplies To: Customer
You can repeat this process for additional dynamic fields, such as:
Files Dynamic Document Library
Files Dynamic Base Folder
Use clear, consistent naming conventions so they’re easily identifiable in the Formula Builder.
Add the Fields to Your Record Form
Once the custom fields are created:
Navigate to the record (e.g., Customer).
Click Customize Form.
Under Fields, enable your new fields (e.g., “Files Dynamic Site”).
Click Save and ensure they appear under the Custom section on the form.
Configure the Record Type Config in SuperSync Files
Go to SuperSync Files > Record Type Configs.
Open or create the configuration for your desired record type (e.g., Customer).
In the Dynamic Connection section, set:
Site Path → your custom “Files Dynamic Site” field
Document Library → “Files Dynamic Document Library” (optional)
Base Folder → “Files Dynamic Base Folder” or an existing field like
Subsidiary
You can use literal strings, NetSuite field IDs, or formulas to build these dynamically.
Use the Formula Builder (Optional)
For advanced logic, open the Formula Builder from the Dynamic Connection section to:
Concatenate text (e.g.,
sites/+{entityid})Use
NVL()expressions to provide fallbacksCombine field references and static values
Example Formula:
'sites/' || {entityid}
This creates site paths like sites/3M, sites/ALPHAMARVIN, etc.
Testing and Validation
To confirm your configuration:
Select a record with populated dynamic fields (e.g., Customer “3M”).
Open the Files tab or run a sync.
Verify that the correct folder structure is created in SharePoint.
If a record’s dynamic field is blank:
Document Library → defaults to “Shared Documents”
Base Folder → defaults to library root
Site → throws configuration error
Example Use Case
Customer-Specific Sites
Dynamic SitePath formula is:
'sites/' || {entityid}
Each customer ID in NetSuite aligns with a SharePoint site (sites/12345), allowing seamless, per-customer file segregation.
Troubleshooting
| Issue | Likely Cause | Resolution |
|---|---|---|
| Error: “Site not configured correctly” | Site Path field empty or invalid | Ensure the SitePath field points to a valid SharePoint site |
| Files uploading to Shared Documents | Dynamic Document Library or Base Folder empty | Populate or verify dynamic field values |
| Folder not appearing in expected location | Formula misconfigured | Test formula output using the Formula Builder Preview |
| Sync fails intermittently | Site or folder contains hyphens or unsupported characters | Remove hyphens or special characters and retry |
Recommended Test Configuration (Dev Example)
| Field | Value | Notes |
|---|---|---|
| Site Path | `'sites/' | |
| Document Library | FilesDL | Existing library on dev SharePoint |
| Base Folder | {subsidiary} | Uses NetSuite Subsidiary text |
| Connection | Demo or Dev Site | Same domain, same API key |
Summary
Dynamic SharePoint paths in SuperSync Files make it possible to manage distributed document structures directly from NetSuite without static configuration.
By using formulas or field values for Site, Document Library, and Base Folder, organizations can maintain a clean, scalable file organization model across multiple SharePoint sites or business units.
