---
schema_version: "1"
id: 858aa63c9f66e3a0f1cde86cb93815062a0f00e8209e4f773d95f8ae8b6eea80
title: ConnectApi.Motif
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_motif.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_motif.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 12d459cf59f2e476d6af3c200a91e37538457168523d29ab82046cb0411913de
description: The motif properties contain URLs for small, medium, and large icons that indicate the Salesforce record type. Common record types are files, users, and groups, but all record types have a set of motif icons. Custom object records use their tab style icon. All icons are available to unauthenticated users so that, for example, you can display the motif icons in an email. The motif can also contain the record type’s base color.
---
# ConnectApi.Motif

The motif properties contain URLs for small, medium, and large icons that indicate the Salesforce record type. Common record types are files, users, and groups, but all record types have a set of motif icons. Custom object records use their tab style icon. All icons are available to unauthenticated users so that, for example, you can display the motif icons in an email. The motif can also contain the record type’s base color.

The motif images are icons, not user uploaded images or photos. For example, every user has the same set of motif icons.

Custom object records use their tab style icon, for example, the following custom object uses the “boat” tab style:

   "motif": {
      "color: "8C004C",
      "largeIconUrl": "/img/icon/custom51\_100/boat64.png",
      "mediumIconUrl": "/img/icon/custom51\_100/boat32.png",
      "smallIconUrl": "/img/icon/custom51\_100/boat16.png",
      "svgIconUrl": null
   },

Users use the following icons:

   "motif": {
      "color: "1797C0",
      "largeIconUrl": "/img/icon/profile64.png",
      "mediumIconUrl": "/img/icon/profile32.png",
      "smallIconUrl": "/img/icon/profile16.png",
      "svgIconUrl": null
   },

Groups use the following icons:

   "motif": {
      "color: "1797C0",
      "largeIconUrl": "/img/icon/groups64.png",
      "mediumIconUrl": "/img/icon/groups32.png",
      "smallIconUrl": "/img/icon/groups16.png",
      "svgIconUrl": null
   },

Files use the following icons:

  "motif": {
      "color: "1797C0",
      "largeIconUrl": "/img/content/content64.png",
      "mediumIconUrl": "/img/content/content32.png",
      "smallIconUrl": "/img/icon/files16.png",
      "svgIconUrl": null
   },

![Note](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/images/icon_note.png)

#### Note

To view the icons in the previous examples, preface the URL with https://{instance\_name}. For example, https://{instance\_name}/img/icon/profile64.png.

| Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| color | String | A hex value representing the base color of the record type, or null. | 29.0 |
| largeIconUrl | String | A large icon indicating the record type. | 28.0 |
| mediumIconUrl | String | A medium icon indicating the record type. | 28.0 |
| smallIconUrl | String | A small icon indicating the record type. | 28.0 |
| svgIconUrl | String | An icon in SVG format indicating the record type, or null if the icon doesn’t exist. | 34.0 |