Upload files to Drive and create new folders straight from the Next Matter workflow.
Prepare to connect to Microsoft
As part of the integration, you need to allowlist the Next Matter domain and create a service account. See if you’ve completed all the required steps.
Sign in to https://developer.microsoft.com/graph/graph-explorer.
Select GET as the method, and provide the following URL: GET https://graph.microsoft.com/v1.0/users/{user-id}/drives
Alternative endpoints
For information on how to find site ID, see Create a list in Sharepoint.
View the JSON response for the value of the id parameter.
Method: PUT
URL: https://graph.microsoft.com/v1.0/drives/DRIVE_ID/items/PARENT_ID:/FILE_NAME:/content
The PARENT_ID
is the name of the parent (folder) directory that the file will be inserted to.
Body type: Binary
In the Body enter the data reference to the file you want to upload.
In your Next Matter, click +Add step and select Integration > Custom integration.
Click Settings to configure the step.
Select Microsoft OneDrive in Authorization.
Enter the following details:
https://graph.microsoft.com/v1.0/drives/DRIVE_ID/items/PARENT_FOLDER_ID/children
You can find the info on how to find the DRIVE_ID in the Before you begin section. The PARENT_FOLDER_ID is the name of the parent folder. It might also be root
.Add a folder ID variable with the value of $.id
.
Save your changes.
In your Next Matter workflow, click +Add step and select Integration > Custom integration.
Click Settings to configure the step.
Select Microsoft OneDrive in Authorization.
Enter the following details:
https://graph.microsoft.com/v1.0/me/drive/items/SOURCE_FOLDER_NAME/FILE_NAME:/copy
Save your changes.
Upload files to Drive and create new folders straight from the Next Matter workflow.
Prepare to connect to Microsoft
As part of the integration, you need to allowlist the Next Matter domain and create a service account. See if you’ve completed all the required steps.
Sign in to https://developer.microsoft.com/graph/graph-explorer.
Select GET as the method, and provide the following URL: GET https://graph.microsoft.com/v1.0/users/{user-id}/drives
Alternative endpoints
For information on how to find site ID, see Create a list in Sharepoint.
View the JSON response for the value of the id parameter.
Method: PUT
URL: https://graph.microsoft.com/v1.0/drives/DRIVE_ID/items/PARENT_ID:/FILE_NAME:/content
The PARENT_ID
is the name of the parent (folder) directory that the file will be inserted to.
Body type: Binary
In the Body enter the data reference to the file you want to upload.
In your Next Matter, click +Add step and select Integration > Custom integration.
Click Settings to configure the step.
Select Microsoft OneDrive in Authorization.
Enter the following details:
https://graph.microsoft.com/v1.0/drives/DRIVE_ID/items/PARENT_FOLDER_ID/children
You can find the info on how to find the DRIVE_ID in the Before you begin section. The PARENT_FOLDER_ID is the name of the parent folder. It might also be root
.Add a folder ID variable with the value of $.id
.
Save your changes.
In your Next Matter workflow, click +Add step and select Integration > Custom integration.
Click Settings to configure the step.
Select Microsoft OneDrive in Authorization.
Enter the following details:
https://graph.microsoft.com/v1.0/me/drive/items/SOURCE_FOLDER_NAME/FILE_NAME:/copy
Save your changes.