Skip to content

Get File Attributes Activity

The Get File Attributes activity retrieves properties of a specified file or folder. It enables assigning these properties, such as size, creation date, or last modified time, to a variable for further processing within an automation workflow.

Field Description Requirement
File Name The full path and name of the file or folder from which to retrieve attributes. Required
Attribute Name Specifies the type of information to be retrieved from the file or folder. Optional
Result Variable Name The name of the variable where the retrieved attribute value will be stored. Required

Action Types & Examples

CREATION_TIME

  • Format: string (ISO 8601 datetime)
  • Example Result: "2023-10-27T10:30:00Z"

LAST_ACCESS_TIME

  • Format: string (ISO 8601 datetime)
  • Example Result: "2023-10-27T11:00:00Z"

LAST_MODIFIED_TIME

  • Format: string (ISO 8601 datetime)
  • Example Result: "2023-10-27T12:00:00Z"

SIZE

  • Format: integer (bytes)
  • Example Result: "10240"

HIDDEN

  • Format: boolean
  • Example Result: "true"

READONLY

  • Format: boolean
  • Example Result: "false"

Implementation Examples

Field Setup - File Name: C:\Test.txt - Attribute Name: LAST_MODIFIED_TIME - Result Variable Name: lastModified

Execution Parameters - When executed with the above setup, the lastModified variable would contain a value such as: "2023-10-27T12:00:00Z"

Technical Notes

Ensure the specified file or folder path is accessible by the execution environment. Permissions issues can prevent attribute retrieval. The format of date/time attributes may vary based on system locale settings, though ISO 8601 is generally recommended for consistent parsing.