Get Folder Information
This activity is used to retrieve any information that we need about a particular folder like the date and time of creation, Files and folders, if sharing is enabled, size of the folder, size of the folder on disk and user permission file.
Technical Reference:
|
INPUT |
FolderPath: This indicates the path of the folder for which the information has to be retrieved. |
MISC |
Display Name: Displays the name of the activity. You can also customize the activity name to help troubleshoot issues faster. This name will be used for logging purposes. |
|
SkipOnError: It specifies whether to continue executing the workflow even if it throws an error. This supports only Boolean value “True or False.” True: Continues to execute the workflow irrespective of any error thrown. False: Stops the workflow if it throws any error |
||
Version: It specifies the version of the FS automation feature in use |
||
OUTPUT |
CreationDateTime: Create a variable here to get the details of the date and time the folder was created. This is not a mandatory field however to get the output declare a variable here. |
|
Files: Create a variable here to get the details of the files available in the folder This is not a mandatory field however to get the output declare a variable here. |
||
Folder: Create a variable here to get the list of the folders available within this folder. This is not a mandatory field however to get the output declare a variable here. |
||
SharingEnabled: Create a variable here to know if the folder is shared or not. This is not a mandatory field however to get the output declare a variable here. |
||
Size: Create a variable here to know the size of the folder. This is not a mandatory field however to get the output declare a variable here. This is not a mandatory field however to get the output declare a variable here. |
||
SizeOnDisk: Create a variable here to know the size of the folder on Disk. This is not a mandatory field however to get the output declare a variable here. |
||
UserPermission: Create a variable here to know if the folder needs a user permission or not. This is not a mandatory field however to get the output declare a variable here. |
* Mandatory fields to execute the workflow.
The following activity illustrates on how we are going to find the creation date time of the folder and if sharing is enabled for the folder.
In this activity we can use multiple message boxes to see the result of each of the folder information required.
Example:
1. Drag and drop a get folder information activity from the FS automation feature tab4.
2. Double click on the activity and enter the path of the folder for which the folder information is required.
3. Add a variable to the CreationDateTime and SharingEnabled box for which the value is required
4. Drop two message boxes one below the other below the get folder information tab.
5. Add the same variable in the input string of the message box. E.g., DT.ToString
6. Add the title for the output in the message box within strings. E.g., “Result”
7. Execute the workflow
The bot retrieves the information of the folder and displays the same in the message box.