---
schema_version: "1"
id: 49365e602b65a5a1e290beff1f5befc7a74bc7e6254bd621f9e7470c28870fd8
title: Solution
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_solution.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_solution.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: dbebdcdc7eec0dea2210026564d79eef9d5345b3e8b81e038200be28921be903
description: Represents a detailed description of a customer issue and the resolution of that issue.
---
# Solution

Represents a detailed description of a customer issue and the resolution of that issue.

## Supported Calls

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

## Fields

| Field | Details |
| --- | --- |
| IsDeleted | 
Type

boolean

Properties

Defaulted on create, Filter

Description

Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is **Deleted**.



 |
| IsHtml | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the Solution is an HTML solution (true) or not (false).



 |
| IsOutOfDate | 

Type

boolean

Properties

Defaulted on create, Filter

Description

Read-only field that indicates whether a solution master has been updated since the translated version was created (true) or not (false). Note that this field does not appear in the page layout of master solutions.



 |
| IsPublished | 

Type

boolean

Properties

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

Description

Indicates whether the Solution has been published (true) or not (false). A solution’s published state does not affect how it can be used, or whether you can query, update, or delete it. Label is **Public**. Prior to Spring ‘14, the label was **Visible in Self-Service Portal**



 |
| IsPublishedInPublicKb | 

Type

boolean

Properties

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

Description

Indicates whether the Solution has been published as a Public Solution (true) or not (false). Label is **Visible in Public Knowledge Base**.

This field only applies to solutions, not articles in the public knowledge base.





 |
| IsReviewed | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the Solution has been reviewed (true) or not (false). This flag can only be set indirectly via the Status picklist. Each predefined Status value implies an IsReviewed value. Label is **Reviewed**.



 |
| LastReferencedDate | 

Type

datetime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last interacted with this record, directly or indirectly.



 |
| LastViewedDate | 

Type

datetime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, it’s possible that the user only accessed this record or list view (LastReferencedDate), but not viewed it.



 |
| OwnerId | 

Type

reference

Properties

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

Description

ID of the User who owns the Solution.

This is a relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

User



 |
| ParentId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Update

Description

ID of the master solution, if this is the translation of a master solution.



 |
| RecordTypeId | 

Type

reference

Properties

Create, Filter, Nillable, Update

Description

ID of the RecordType to which the Solution is associated.



 |
| SolutionLanguage | 

Type

picklist

Properties

Create, Filter, Restricted picklist, Update

Description

The language that the solution is written in, such as French or Chinese (Traditional).



 |
| SolutionName | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Required. If a client application creates a new Solution and a value for this field is unspecified, a hyphen (-), the default value for this field, is used. Limit: 255 characters. Label is **Title**.



 |
| SolutionNote | 

Type

textarea

Properties

Create, Nillable, Update

Description

The details of the Solution record. Limit: 32,000 characters. Label is **Solution Details**. If you have HTML Solutions enabled, any HTML tags used in this field are verified before the object is created or updated. If invalid HTML is entered, an error is thrown. Any JavaScript used in this field is removed before the object is created or updated.

SolutionNote operates as a special type of String. If you have HTML Solutions enabled, any HTML tags used in this field are verified before the object is created or updated. If invalid HTML is entered, an error is thrown. Any JavaScript used in this field is removed before the object is created or updated.

In the following example, when the Solution displays on a detail page, the SolutionNote field has H1 HTML formatting applied to it:

trigger t on Solution (before insert) { 
            Trigger.new\[0\].SolutionNote ='<h1>hello</h1>'; 
}

In the following example, when the Solution displays on a detail page, the SolutionNote field only contains HelloGoodbye:

trigger t2 on Solution (before insert) {
Trigger.new\[0\].SolutionNote =
    '<javascript>Hello</javascript>Goodbye';
}

For more information, see [HTML Solutions Overview](https://help.salesforce.com/s/articleView?id=service.sol_html_def.htm&type=5&language=en_US "HTML (New Window)") in Salesforce Help.





 |
| SolutionNumber | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, Sort

Description

An identifying number that is assigned automatically when a solution is created. It can’t be set directly, and it can’t be modified.



 |
| Status | 

Type

picklist

Properties

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

Description

Required. The status of the solution. Directly controls the IsReviewed value. To obtain the status values in the picklist, a client application can query the SolutionStatus.



 |
| TimesUsed | 

Type

int

Properties

Filter, Group, Sort

Description

Number of times this solution has been used. Label is **Num Related Case**.



 |

## Usage

Use this object to manage your organization’s solutions. Client applications can create, update, delete, and query Attachment records associated with a solution.

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

[SolutionFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.") (API version 18.0)

Feed tracking is available for the object.

[SolutionHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

#### See Also

- [CategoryData](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_categorydata.htm "Represents a logical grouping of Solution records.")
- [CategoryNode](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_categorynode.htm "Represents a tree of Solution categories.")