---
schema_version: "1"
id: 13a3c658ae31fcf42d78d9ba4623b800a58a5e9ac96fa89206ad5f5a24f625f3
title: FlowTestResult
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_flowtestresult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_flowtestresult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 94207b5e790bdca548b1d5ad3d840ee41d1a59be0f3012163a5ae1aedd71f6bf
description: Represents the results for a flow test associated with a flow version. This object is available in API version 55.0 and later.
---
# FlowTestResult

Represents the results for a flow test associated with a flow version. This object is available in API version 55.0 and later.

## Supported Calls

describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

## Special Access Rules

To view test run details, you must have the View All Data user permission. You can view flow tests and test results without the View All Data permission.

## Fields

| Field | Details |
| --- | --- |
| Error | 
Type

string

Properties

Filter, Nillable, Sort

Description

The run-time error from the last test scenario run, if one occurred.

This field is available in API version 68.0 and later.



 |
| FailedAssertions | 

Type

string

Properties

Filter, Nillable, Sort

Description

The failed assertions from the last test scenario run.

This field is available in API version 68.0 and later.



 |
| FlowDefinitionViewId | 

Type

string

Properties

Filter, Nillable, Sort

Description

The ID of the flow definition associated with the flow test result.

This is a relationship field.

Relationship Name

FlowDefinitionView

Relationship Type

Lookup

Refers To

FlowDefinitionView



 |
| FlowTestViewId | 

Type

string

Properties

Filter, Nillable, Sort

Description

The ID of the flow test associated with the flow test result.

This is a relationship field.

Relationship Name

FlowTestView

Relationship Type

Lookup

Refers To

FlowTestView



 |
| FlowVersionNumber | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The version number for the flow.



 |
| FlowVersionViewId | 

Type

string

Properties

Filter, Nillable, Sort

Description

The ID of the flow version associated with the flow test result.

This is a relationship field.

Relationship Name

FlowVersionView

Relationship Type

Lookup

Refers To

FlowVersionView



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

The name of the flow test result.



 |
| OwnerId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the user who owns this test result.

This is a polymorphic relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

Group, User



 |
| Result | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Specifies the flow test result.

Possible values are:

- Error
- Fail
- Pass
- Skip—The test run was skipped because the test doesn’t exist for that flow version. This value appears only when you trigger tests by using Salesforce CLI. This value is available in API version 66.0 and later.





 |
| TestEndDateTime | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time when the flow test ended.



 |
| TestStartDateTime | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time when the flow test started.



 |

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[FlowTestResultShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.