> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/integrations/office-365/activities/files/get-item-info.md).

# Get Item Info

Gets the metadata of file or folder.

This activity gets the metadata of the user-specified item (file or folder) using the Microsoft Graph [Get item](https://docs.microsoft.com/en-us/graph/api/driveitem-get?view=graph-rest-1.0\&tabs=http) API.

### Input

* **Connection Id:** [`GraphServiceClient Variable`](/getting-started/rpa-studio/variables.md#graphserviceclient) <mark style="color:red;">`Required`</mark>\
  Specifies the office 365 connection id.
* **Item Id:** [`Object Argument`](/getting-started/rpa-studio/arguments.md#string)  <mark style="color:red;">`Required`</mark>\
  Specifies the Drive Item ID of the file or folder that we want to get info on. For obtaining the ID, input the **DriveItem** variable which can be the output of activities like[ Find Files and Folder](/integrations/office-365/activities/files/find-files-and-folders.md), [Copy Item](/integrations/office-365/activities/files/copy-item.md), [Create Folder](/integrations/office-365/activities/files/create-folder.md), etc. and append ".Id" to the end of the variable.

### SharePoint

* **Drive Name:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  Specifies the name of the drive within OneDrive or SharePoint to search for the specified files or folders. If the given drive exists within SharePoint, then the **Site Url** must be specified. If the field is left blank, the search is carried out in the default drive (**Documents**) of the SharePoint site that is specified in the Site Url field.
* **Site Url:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  Specifies the URL of the SharePoint site to search for the specified files or folders. It's required only when searching in SharePoint.

### Output

* **Item:** [`DriveItem Variable`](/getting-started/rpa-studio/variables.md#driveitem) <mark style="color:red;">`Required`</mark>\
  Specifies the metadata of the file or folder as a [DriveItem ](/getting-started/rpa-studio/variables.md#driveitem)Object.
