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 |
|
FlowTestCoverageId |
|
FlowVersionId |
|
Usage
FlowElementTestCoverage records are deleted when changes are saved to the associated flow version.
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