# Get Resource Details

Retrieve resource details from external storage in Apex via the GetResource invocable.

> Kind: Apex method · Updated: 2026-07-01

## Signature

```apex
global static List<Resource> execute(List<GetResource.FlowInput> inputs)
```

> **Invocable class, not Client** — This is an invocable method exposed on the GetResource class, not a Client method. Call it as cldfs.GetResource.execute(inputs), passing a List<cldfs.GetResource.FlowInput&gt;.

### Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| inputs | List&lt;GetResource.FlowInput&gt; | required | One GetResource.FlowInput per resource to look up. Each input carries resourceId, resourceType, resourcePath, library, and driveId. |

## Return Type

List<Resource&gt; — the matching resource objects.

## Example

```apex
cldfs.GetResource.FlowInput flowInput = new cldfs.GetResource.FlowInput();
flowInput.resourceType = 'folder';
flowInput.resourcePath = '/Account/Test Account';
flowInput.library = 'sharepoint';
flowInput.driveId = 'b!LU5XsSz3m0KNe-Xg9GsVb6W17YthDUpEoqgfcm-1NHgn0yfpElMfSoku6Fu5WwaI';
List<cldfs.Resource> resources = cldfs.GetResource.execute(new List<cldfs.GetResource.FlowInput>{flowInput});
```
