Microsoft OneDrive Component is designed to manage files and folders in OneDrive service using Microsoft Graph API.
Name | Mandatory | Description | Values |
---|---|---|---|
API_RETRIES_COUNT |
false | Set how many time system try to make request to API on server errors (3 by default) | integer above 0 and below 5 |
API_REQUEST_TIMEOUT |
false | HTTP requests timeout in milliseconds (15000 by default) | integer above 500 and below 20000 |
Current release of component tested on Graph API v1
(https://graph.microsoft.com/v1.0/
).
Microsoft OneDrive uses OAuth 2.0.
How to register an application look here.
Redirect URI for platform can be found here, f.e. https://{your-tenant-address}/callback/oauth2
.
OAuth2
.Add New Auth Client
:
Application (client) ID
.Client credentials
.https://login.microsoftonline.com/common/oauth2/v2.0/authorize
.https://login.microsoftonline.com/common/oauth2/v2.0/token
.offline_access Files.ReadWrite.All
.Warning: To maintain a smooth experience, we recommend reusing stored credentials where possible. Duplicating secrets across OAuth clients can result in errors and complications.
Retrieve all the updated or created objects within a given time range.
Please Note: this will increase the number of API calls.
Last Modified
): Select which date will be used to track files - Last Modified
or Created
.Emit individually
): Defines the way result objects will be emitted, one of Emit page
or Emit individually
.YYYY-MM-DDThh:mm:ssZ
. The default value is the beginning of time (January 1, 1970, at 00:00).YYYY-MM-DDThh:mm:ssZ
. Default value is flow execution time.There is no Input or Output metadata in this trigger.
Depends on Enable File Attachments
and Emit behavior
fields.
Emit behavior
field is equal to Emit page
- object with property results
that contains array of files.Emit behavior
field is equal to Emit individually
, file information will fulfill whole message.Enable File Attachments
is checked, for each file there will be an additional field - attachmentUrl
.Emit page
does not always emit records according to Page Size
.Include subfolders
increase amount of API calls - additional call for each subfolder and inner folders.Create a new folder in provided path
. If path
does not exist component will fail.
Fail
by default) - Select one of options to handle case when folder already exists:
path
.path
then will be created a new folder with a different name. Examples: folder_name
(already exist) -> folder_name 1
(will be created), folder_name 1
(already exist) -> folder_name 1 1
(will be created).Monthly reports/November
.Metadata of created folder.
Action to delete item from OneDrive by provided path in selected disc.
Emit nothing
by default) - select one of options to handle case when file not exist:
{}
.Monthly reports/November/Cars sales.pdf
.Monthly reports/November/Cars sales.pdf
.Lookup a single file by its path.
Monthly reports/November/Cars sales.pdf
.File information as JSON object, if Enable File Attachments
checked, there also will be additional field attachmentUrl
with link to file on platform.
Updates (if record exist) or creates a new file.
If Upload single file
checked, there will be 2 fields:
Monthly reports/November/Cars sales.pdf
.If Upload single file
unchecked:
Monthly reports/November/Cars sales.pdf
.Result object from upsert.
Click here to learn more about the elastic.io iPaaS