---
schema_version: "1"
id: 0ce8f5feb4d50708e65863a1f92271cc6cf8ab83227158e468fa7d9da4874cec
title: PromptError
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_prompterror.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_prompterror.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: bcd6996bfc4e9138695b90322d59db8648c373d69d8bacbd6ea9874c27a7821d
description: Represents the error or warning associated with the PromptAction. Available in API version 52.0 and later.
---
# PromptError

Represents the error or warning associated with the PromptAction. Available in API version 52.0 and later.

Prompts and walkthroughs help users discover your products and services, adopt your processes, or learn how to use a new feature. Add prompts and walkthroughs in Lightning Experience pages or apps or in supported Experience Cloud site pages. Add an optional action button or link that goes to a URL. Track views, action button clicks, and walkthrough completions.

## Supported Calls

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()

## Special Access Rules

To add, edit, manage, and view prompts and walkthroughs in Lightning Experience or in Experience Cloud sites, multiple permissions are required. See [Permissions for Creating and Accessing In-App Guidance](https://help.salesforce.com/s/articleView?id=sales.customhelp_lex_wt_license.htm&type=5&language=en_US "HTML (New Window)") in Salesforce Help.

## Fields

| Field | Details |
| --- | --- |
| IsError | 
Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates if the in-app guidance had an error true or a warning false. The default is false.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Name of the PromptError record.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

ID of the User or Group.



 |
| PromptActionId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

ID of the PromptAction that the PromptError is related to.



 |
| StepNumber | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Indicates the step number that the user encountered an error or warning in a walkthrough.



 |
| Type | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

Indicates the type of error or warning. Possible values are:

- NoAccessToApp—A step on this walkthrough is on an app that some of your users don’t have access to.
- NoAccessToPage—A step on the walkthrough is on a page that some of your users don’t have access to.
- ReferenceElementNotFound—The target element has moved or is no longer on your page. Targeted prompts attached to unavailable elements convert to floating prompts. Check your access to the element, or enter targeting mode and reassign the targeted prompt.
- Unavailable—Users tried to open this walkthrough using its URL, but it's inactive or the users aren’t licensed to see it. To make it accessible to users, check its settings or activate it.





 |

## Associated Objects

This object has the following associated objects. They are available in API version 52.0 and later.

[PromptErrorOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[PromptErrorShare](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.