# Get Salesforce Files

Retrieve the ContentDocument Ids of all Salesforce files attached to a record from Apex.

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

## Signature

```apex
global static List<List<Id>> execute(List<GetSalesforceFiles.FlowInput> inputs)
```

> **Invocable class** — This is an invocable method, not a Client method. Call it as cldfs.GetSalesforceFiles.execute(inputs) where each input is a cldfs.GetSalesforceFiles.FlowInput carrying a recordId — not as cldfs.Client.*.

### Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| inputs | List&lt;GetSalesforceFiles.FlowInput&gt; | required | One entry per Salesforce record. Each FlowInput carries the recordId whose attached files you want. |

## Return Type

List<List<Id&gt;&gt; — the ContentDocument Ids of the files attached to each input record, in input order.

## Example

```apex
cldfs.GetSalesforceFiles.FlowInput input = new cldfs.GetSalesforceFiles.FlowInput();
input.recordId = '006dL000005H4srQAC';//Salesforce 

List<List<Id>> ContentDocumentIds = cldfs.GetSalesforceFiles.execute(new List<cldfs.GetSalesforceFiles.FlowInput>{input});
```
