SharePoint integration

Modified on Thu, 5 Nov at 12:04 PM

How the integration works

With the SharePoint integration, the files in Project Flow are stored in SharePoint instead of only in Moment Cloud. You keep working with files in Project Flow as usual: you upload, open, move and tag them in Project Flow. The files are also available in SharePoint, in a folder structure that follows your customers, projects, activities and tasks.

Only for existing customers. The SharePoint integration can no longer be added by new customers. This article is for companies that already use it.

  • Moment Cloud first. When a file is uploaded, Project Flow stores it in Moment Cloud first, and then copies it to SharePoint right away. When the copy is done, the file in Project Flow links to the file in SharePoint.
  • Information in Project Flow. Which customer, project, activity or task a file belongs to, and its tags, is stored in Project Flow. That is why you can still search and filter files in Project Flow.
  • Access to files. Access is controlled in SharePoint. Project Flow doesn't transfer permissions. To open a file stored in SharePoint, the user needs access to it in SharePoint.



Which files are stored in SharePoint

  • Customer files
  • Project files, with or without an activity
  • Task attachments, including attachments on recurring tasks

Other files, such as images pasted into text fields, stay in Moment Cloud.



Folder structure in SharePoint

In Project FlowIn SharePoint
CustomerA document library with the customer's name. Customer files are placed directly in the library.
ProjectA folder with the project name, without the project number.
ActivityA folder inside the project folder, with the activity number and name, for example 01 Design.
TaskA folder inside the activity folder: #<task number> <task name>.
Recurring taskOne shared folder for all its occurrences, named after the task, without number.

Characters SharePoint doesn't allow (" * : < > ? / \ |) are replaced with _. In folder names, a period is replaced with a space.

Renaming and moving. If you rename a customer, project, activity or task in Project Flow, the library or folder is renamed in SharePoint too. If you move a project to another customer, its files are moved to that customer's library.



Set up the integration

Step 1: Settings in Azure and SharePoint

Project Flow connects to SharePoint through an application you register in Microsoft Entra ID (Azure Active Directory), using Microsoft Graph with application permissions. You need:

  • Tenant ID: from the overview page in Entra ID.
  • Application (client) ID and Client secret: from the application you register for Project Flow.
  • Site ID: the ID of the SharePoint site the files are stored on. Open the site in your browser, view the page source and search for siteId.
  • Content Type ID (optional): if you want the columns for activity, year, period and tags in SharePoint, create a content type first (see Columns in SharePoint).

Permissions. For the best security, give the application the permission Sites.Selected, and grant it access only to the site used by Project Flow. Granting that access is done with a second, administrative application, with Sites.FullControl.All. Remember to grant admin consent.


Step 2: Configure the integration in Project Flow

Open Setup → Settings → Integrations → SharePoint:

Field (EN / NB)Description
Storage location name / Navn på lagringsstedA name for the storage location. It is shown on projects, for example "Our SharePoint (SharePoint)".
Tenant IDFrom Entra ID.
Application ID (Client ID)From the application for Project Flow.
Client SecretThe secret of the application for Project Flow.
Site ID / Site-IDThe ID of the SharePoint site. Not the site address.
Content Type ID / Innholdstype IDOptional. The content type that is added to every new customer library.
Project template / ProsjektmalA project template whose activities get folders on every project.
Create folders for projects and activities / Opprett mapper for prosjekter og aktiviteterCreates the folders for projects and activities, including those in the project template, right away. Without it, folders are created when the first file is uploaded, and empty folders are removed again.
Allow download of files / Tillatt nedlasting av filerShows the download button for SharePoint files in Project Flow. Downloading through Project Flow doesn't check the user's access in SharePoint, so turn this off if access in SharePoint must always apply.
Auto synchronize with SharePoint / Automatisk synkronisering med SharePointWhen a list of files is opened in Project Flow, Project Flow checks SharePoint and brings in changes (see Synchronization).
Coworkers to notify / Emails to notifyWho gets an e-mail when something goes wrong.

No connection test. Project Flow doesn't test the connection when you save. Upload a test file afterwards, and check that it appears in SharePoint (see Verify the integration).


Step 3: Choose which customers use SharePoint

The storage location is set per customer. Projects inherit it from the customer.

  1. Open the customer and go to the Files tab.
  2. Under Storage location (Lagringslokasjonen), choose SharePoint. You need permission to edit customers.
  3. Confirm the message: "Files stored at Moment Cloud will now be transferred to SharePoint, be aware this might take some time. During this process file access might result in errors."

Project Flow creates the customer's library in SharePoint and transfers the customer's existing files in the background. If two files would get the same name, Project Flow adds _1, _2 and so on.



Synchronization

  • Project Flow to SharePoint. Files uploaded in Project Flow are copied to SharePoint right away. If a transfer failed, the file list shows the warning "Some files are not transferred to SharePoint", and you can transfer them again from there.
  • SharePoint to Project Flow. With Auto synchronize with SharePoint turned on, Project Flow checks SharePoint when a list of files is opened:
    • Files added directly in SharePoint appear in Project Flow.
    • Files renamed or moved in SharePoint are updated in Project Flow.
    • Files deleted in SharePoint are shown in red italics in Project Flow, and can only be deleted.

No scheduled job. There is no daily synchronization. Changes in SharePoint are brought in when someone opens the file list.

Deleting files. If you delete a file in Project Flow, it is also deleted in SharePoint.



Columns in SharePoint

With a content type, Project Flow fills in four columns on the files in SharePoint, so you can filter on them there:

ColumnContent
ActivityMomentThe activity name. Only set if the name is one of the column's choices.
TagsMomentThe file's tags in Project Flow. Only tags that are choices in the column are written.
PeriodMomentMonth and year, from the task's period or due date. Only on task attachments.
YearMomentThe year, from the task's period or due date. Only on task attachments.
  • Create the columns first. The columns must exist in the content type, with these internal names. Columns that don't exist are skipped.
  • Libraries that already exist. The content type is only added to libraries created after it was set in the integration, so add it to the integration before you move customers to SharePoint.
  • Show the columns. In each library, choose Add column → Show or hide columns, because SharePoint doesn't show them automatically.



Limitations

  • Unique customer names. While the integration is active, customer names must be unique, because each customer becomes a library: "There already exists a customer with this name. A customer name must be unique when SharePoint integration is active."
  • Unique project names per customer. A project can't be moved to a customer that already has a SharePoint project with the same name.
  • Unique file names per folder. If a file with the same name already exists, Project Flow asks you to rename the file before uploading it.
  • Path length. The full path in SharePoint can be at most 350 characters.
  • File extension. Files should have a file extension to be shown correctly, and it can't be changed when you rename a file.
  • Template activities. Activities from the SharePoint project template can't be deleted while Create folders for projects and activities is on. Administrators get the option to delete them anyway.



Verify the integration

  1. Set a test customer's storage location to SharePoint.
  2. Check that a document library with the customer's name has been created on the site.
  3. Upload a file to a project for that customer. Check that it appears in the project folder in SharePoint, and that it opens from Project Flow.



Check the log

Go to Company → Logs and choose the category Sharepoint:

MessageMeaning
"Created document library for customer …"The customer's library was created.
"Failed to transfer … to SharePoint"A file couldn't be copied. Transfer it again from the file list.
"Failed to create SharePoint library"The library couldn't be created. Check the Site ID and the application's access.
"Marked … as deleted because it was not found in SharePoint"The file was deleted in SharePoint.



Q&A

Q: A file I uploaded in Project Flow isn't in SharePoint.

A: Open the file list. If you see "Some files are not transferred to SharePoint", click it to transfer the files again. Check the log if it fails again.

Q: Files I added in SharePoint don't show up in Project Flow.

A: Turn on Auto synchronize with SharePoint, and open the file list in Project Flow. Changes from SharePoint are brought in when the list is opened.

Q: A file is shown in red italics.

A: The file was deleted in SharePoint. Delete it in Project Flow too.

Q: I can't open a file from Project Flow.

A: Files stored in SharePoint open with your SharePoint access. Ask your SharePoint administrator for access to the library.

Q: What happens if I switch a customer back to Moment Cloud?

A: Files uploaded in Project Flow are kept, because Moment Cloud already has a copy. Files that were added directly in SharePoint only exist there, so download them first.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article