---
schema_version: "1"
id: 0873688ac426b5ec55dd84d7cdcc342bf4b46b0e5d55b16380a370c423580afe
title: FlowElementTestCoverage
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_flowelementtestcoverage.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_flowelementtestcoverage.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1420f8a494d65501824810811c40f46f61c10b26e1410ebb31921bb7ee92b84d
description: Represents a flow element that was executed by a given Apex test method. Available in API version 44.0 and later.
---
# FlowElementTestCoverage

Represents a flow element that was executed by a given Apex test method. Available in API version 44.0 and later.

## Supported SOAP Calls

query(), delete(), retrieve(), update()

## Supported REST HTTP Methods

GET, HEAD

## Fields

| Field | Details |
| --- | --- |
| ElementName | 
Type

string

Properties

Filter, Group, Nillable, Sort, Update

Description

The unique name of the flow element that’s executed by the test method.



 |
| FlowTestCoverageId | 

Type

ID

Properties

Filter, Group, Sort

Description

The ID of the parent FlowTestCoverage record.



 |
| FlowVersionId | 

Type

ID

Properties

Filter, Group, Sort, Update

Description

The ID of the flow version that’s executed by the test method.



 |

## Usage

FlowElementTestCoverage records are deleted when changes are saved to the associated flow version.

![Tip](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/images/icon_note_tip.png)

#### Tip

A flow version corresponds to a process built in Process Builder or a flow built in Flow Builder. When you create a process, Salesforce names each element for you. To understand which criteria node or action corresponds with an element name, see [Troubleshoot Processes with Apex Debug Logs](https://help.salesforce.com/articleView?id=process_troubleshoot_debuglogs.htm&language=en_US "HTML (New Window)").

## Sample Queries

Get the executed elements that were executed by any test

SELECT Id, Elementname, FlowTestCoverageId 
FROM FlowElementTestCoverage 
WHERE FlowVersionId='301RM0000004GiK'

Get the number of elements that were executed by any test

SELECT count\_distinct(ElementName) 
FROM FlowElementTestCoverage 
WHERE FlowVersionId='301RM0000004GiK'

Get the names of the elements that were executed by any test

SELECT ElementName, count(Id) 
FROM FlowElementTestCoverage 
WHERE FlowVersionId='301RM0000004GiK' 
GROUP BY ElementName