# Set Resource Property (Batch)

Update properties on many files or folders in one call from Apex, through the Set Resource Property (Batch) action class.

> Kind: Apex method · Updated: 2026-10-05

## Signature

```apex
global static void execute(
  List<SetResourcePropertyBatch.FlowInput> inputs
)
```

### Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| inputs | List&lt;SetResourcePropertyBatch.FlowInput&gt; | required | One or more groups of updates. Every update in every group is sent in one request. See the field breakdown below. |

### FlowInput

### FlowInput
| Parameter | Type | Required | Description |
|---|---|---|---|
| inputs | List&lt;<a href="#/apex-type-set-resource-property-flow-input">SetResourcePropertyFlowInput</a>&gt; | required | The resources to update in this group, each with its property updates. |

## Return Type

void

## Example

```apex
cldfs.Resource folder = new cldfs.Resource(
  '01KEHAKUXCQ6YIOFLOPJHJN57Y5EYQTJMZ', // resource Id
  'folder',
  null,
  'sharepoint',
  'b!nJBtPq_z5UeJtFrj_f24XEQqlPUD8vtFsg7GBcrXJepiUn9bkb_7QbDPtqHVD-cP'
);

cldfs.CloudFilesVariable status = new cldfs.CloudFilesVariable();
status.key = 'Status';
status.valueString = 'Approved';

cldfs.SetResourcePropertyFlowInput update = new cldfs.SetResourcePropertyFlowInput();
update.resource = folder;
update.updates = new List<cldfs.CloudFilesVariable>{ status };

cldfs.SetResourcePropertyBatch.FlowInput input = new cldfs.SetResourcePropertyBatch.FlowInput();
input.inputs = new List<cldfs.SetResourcePropertyFlowInput>{ update };

cldfs.SetResourcePropertyBatch.execute(
  new List<cldfs.SetResourcePropertyBatch.FlowInput>{ input }
);
```

> **One storage library per call** — Every update in the call is sent with the storage library of the first resource, so resources in different libraries fail. Make one call per library. The call also fails if the first group has no updates. To update a single resource, or to set properties with your own Map<String, String&gt;, use Set Resource Property.
