2022.2

Table Of Contents
For more information on setting application permissions for Microsoft Graph, see https://-
docs.microsoft.com/en-us/graph/auth-v2-service.
Input
The Microsoft 365 OneDrive Input task retrieves files corresponding to a specified file mask, from a spe-
cified OneDrive folder. These files may be of any format, even formats that are not readable by PReS
Workflow.
Processing
The task uses the Microsoft Graph API to access OneDrive folders in the organization (subject to that
organization's IT policies).
Each file captured by the input is sent down through the process, one at a time. When the file is fin-
ished, the process goes back to the input which feeds another file down, as long as there are files in the
queue. Once all the files are gone, the task polls the input folder again to see if new files are present
and, if so, the process continues with these files. Otherwise, the process ends.
Note: The MS Graph REST API is limited to a certain number of requests within a certain period
of time. This is called throttling. When throttling comes into play, the plugin receives HTTP
response 429. The plugin will log the error and retry, but it exits with an error after 15 unsuc-
cessful attempts.
Output
The output to this task is a series of individual files, one after the other. These files are not modified in
any way from when they are captured from the source folder.
Job Information definitions
l
%1 - User. This is the OneDrive user's ID.
l
%2 - Source File Name. Contains the file name (excluding path but including extension) of the
file name that is captured. Equivalent to using the %o system variable.
l
%3 - Folder: Contains the folder from which the data was captured.
Task properties
General Tab
l
Folders: Enter the full path of a folder from which the input files are to be taken. The first / refers
to the root folder. For its subfolders, the first / is optional.
This is a variable property field. You can use any combination of text, variables and data
Page 325