Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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:
1"motif": {
2      "color: "8C004C",
3      "largeIconUrl": "/img/icon/custom51_100/boat64.png",
4      "mediumIconUrl": "/img/icon/custom51_100/boat32.png",
5      "smallIconUrl": "/img/icon/custom51_100/boat16.png",
6      "svgIconUrl": null
7   },
Users use the following icons:
1"motif": {
2      "color: "1797C0",
3      "largeIconUrl": "/img/icon/profile64.png",
4      "mediumIconUrl": "/img/icon/profile32.png",
5      "smallIconUrl": "/img/icon/profile16.png",
6      "svgIconUrl": null
7   },
Groups use the following icons:
1"motif": {
2      "color: "1797C0",
3      "largeIconUrl": "/img/icon/groups64.png",
4      "mediumIconUrl": "/img/icon/groups32.png",
5      "smallIconUrl": "/img/icon/groups16.png",
6      "svgIconUrl": null
7   },
Files use the following icons:
1"motif": {
2      "color: "1797C0",
3      "largeIconUrl": "/img/content/content64.png",
4      "mediumIconUrl": "/img/content/content32.png",
5      "smallIconUrl": "/img/icon/files16.png",
6      "svgIconUrl": null
7   },

To view the icons in the previous examples, preface the URL with https://instance_name. For example, https://instance_name/img/icon/profile64.png.

Note

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