Get File Details
AutomatR.OneDriveApp.Activities.GetFileDetails
The "Get File Details" activity in AutomatR is part of the OneDrive activities package, allowing automation processes to fetch details for a specific file in a user's OneDrive account. This activity simplifies the retrieval of file information, enhancing the efficiency of automation workflows.
Properties
Name | Description |
---|---|
Input | |
Path | Specifies the file name, including its extension, for which you would like to retrieve details. String variables containing the file path. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get File Details" activity. Integer variables containing the delay duration. Example: 5 seconds i.e. 5. |
Output | |
Result | Outputs the result of the "Get File Details" operation, storing the details of the specified file in a DriveItem variable. You can utilize this variable for further activities. |
How to Use
- Drag and drop the "Get File Details" activity onto the workflow.
- Configure the properties by specifying the file path for which you want to retrieve details.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to fetch details for the specified file in OneDrive.
Important Notes:
- Ensure that the activity is placed within a "OneDrive Scope" activity to establish the necessary authentication scope.
- The "Path" should include the file name, including its extension, for which you want to retrieve details.
Example:
Consider an example where the "Get File Details" activity is used to fetch details for a file named "document.txt" in OneDrive:
Get File Details:
Display Name: "Fetch Document Details"
Path: "/Folder1/document.txt"
Result: documentDetails
In this example, the activity fetches details for the "document.txt" file in the "Folder1" directory within OneDrive. The details are stored in the DriveItem variable "documentDetails" for further use in the workflow.