# FLOW_LoggerEnd

**Class** · Group: `Logging`

Learn it: [Logging guide](/logging-guide)

<div class="apex-member apex-class">

```apex
global inherited sharing class FLOW_LoggerEnd
```

Ends a logging correlation for a Flow. Use this at the end of a Flow to log completion status.

**Example**

`In Flow Builder: ` Add "End Flow Correlation" action at the end of your Flow Pass the Correlation ID from "Start Flow Correlation" Set Flow Name and Success status `Optionally set Error Message if the Flow failed `

</div>

---

## Methods

| Method | Description |
|--------|-------------|
| global static void [execute](#execute)([List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm)<[FLOW_LoggerEnd.DTO_Request](/reference/apex/flow-loggerend-dto-request)> inputs) | Ends a correlation context for Flow logging. |

### execute

<div class="apex-member">

```apex
@InvocableMethod(category='Logging' description='Ends logging correlation for a Flow and logs completion status.' label='End Flow Correlation') global static void execute(List<FLOW_LoggerEnd.DTO_Request> inputs)
```

Ends a correlation context for Flow logging.

**Parameters**

| Parameter | Type | Description |
|-----------|------|-------------|
| `inputs` | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm) | List of input parameters |

**Example**

```apex
FLOW_LoggerEnd.execute(new List<DTO_Request>());
```

</div>

## Inner Classes

| Class | Description |
|-------|-------------|
| [DTO_Request](/reference/apex/flow-loggerend-dto-request) | Input parameters for ending Flow correlation. |

---
