---
schema_version: "1"
id: 03e2f692c0f4fa11851e675513011fa790d6ead36a6b4f25dcaf7802d8a664ec
title: Favorite
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/uiapi/ui_api_responses_favorite.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_favorite.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 454af31ca6cc9ffe77aa661d467f61191985178bf49517b458dbd1d23d8716d2
description: A single favorite.
---
# Favorite

A single favorite.

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d108313e33">Property Name</th>
              <th class="featureTableHeader vertical-align-top " id="d108313e35">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d108313e37">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d108313e39">Filter Group and Version</th>
              <th class="featureTableHeader vertical-align-top " id="d108313e41">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">accessCount</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">Integer</td>
              <td class="entry" headers="d108313e37" data-title="Description">The number of times this favorite has been used.</td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Big, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">iconColor</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">String</td>
              <td class="entry" headers="d108313e37" data-title="Description">The color of the icon for this favorite, usually the related object’s color.</td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Big, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">iconUrl</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">String</td>
              <td class="entry" headers="d108313e37" data-title="Description">The URL of the icon for the favorite, usually the related object’s icon.</td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Big, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">id</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">String</td>
              <td class="entry" headers="d108313e37" data-title="Description">The ID of the favorite.</td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Small, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">lastAccessDate</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">String</td>
              <td class="entry" headers="d108313e37" data-title="Description">The last time this favorite was used. The value is in <a class="xref" href="https://www.w3.org/TR/NOTE-datetime" target="_blank" title="HTML (New Window)">ISO 8061</a> date and time format.</td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Big, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">name</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">String</td>
              <td class="entry" headers="d108313e37" data-title="Description">The name of the favorite.</td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Small, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">objectType</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">String</td>
              <td class="entry" headers="d108313e37" data-title="Description">The developer name of the entity associated with this favorite, if any.</td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Medium, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">sortOrder</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">Integer</td>
              <td class="entry" headers="d108313e37" data-title="Description">The sort order of the favorite, from 1 to N.</td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Small, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">subtitle</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">String</td>
              <td class="entry" headers="d108313e37" data-title="Description">The subtitle of the favorite, usually the object’s label. Provides additional information
                about the type of record or content being favorited.</td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Medium, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">target</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">String</td>
              <td class="entry" headers="d108313e37" data-title="Description">The record, API name, or content being favorited.</td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Small, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d108313e33" data-title="Property Name"><samp class="codeph nolang">targetType</samp></td>
              <td class="entry" headers="d108313e35" data-title="Type">String</td>
              <td class="entry" headers="d108313e37" data-title="Description">The type of record or content being favorited. One of these values:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">ListView</samp>—A favorited list view.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">ObjectHome</samp>—A favorited object home.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">Record</samp>—A favorited record.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">Tab</samp>—A favorited tab.
                  </li>

                </ul>
              </td>
              <td class="entry" headers="d108313e39" data-title="Filter Group and Version">Small, 41.0</td>
              <td class="entry" headers="d108313e41" data-title="Available Version">41.0</td>
            </tr>
          </tbody>
        </table>

#### See Also

- [Create a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_create.htm "Create a favorite.")
- [Get Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_get.htm "Get all of a user’s favorites.")
- [Update a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorite_update.htm "Update a favorite.")
- [Update Usage of a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_usage_update.htm "Update the usage of an individual favorite. Increments the accessCount and sets the lastAccessDate to the current system time.")