Newer Version Available

This content describes an older version of this product. View Latest

Records Class

Access information about record motifs, which are small icons used to distinguish record types in the salesforce.com UI.

Namespace

ConnectApi

Records Methods

The following are methods for Records. All methods are static.

getMotif(String, String)

Returns a Motif object that contains the URLs for a set of small, medium, and large motif icons for the specified record. It can also contain a base color for the record.

API Version

28.0

Signature

public static ConnectApi.Motif getMotif(String communityId, String idOrPrefix)

Parameters

communityId
Type: String
Use either the ID for a community, internal, or null.
idOrPrefix
Type: String
An ID or key prefix.

Return Value

Type: ConnectApi.​Motif

Usage

Each Salesforce record type has its own set of motif icons. See ConnectApi.​Motif.