Records Class
Access information about record motifs, which are small icons used to distinguish record types in the Salesforce UI.
These methods are for Records. All methods are static.
-
getMotif(communityId, idOrPrefix)
Get a motif that contains the URLs for a set of small, medium, and large motif icons for a record. It can also contain a base color for the record.
-
getMotifBatch(communityId, idOrPrefixList)
Get a motif for a list of objects.
Get a motif that contains the URLs for a set of small, medium, and large motif icons for a record. It can also contain a base color for the record.
28.0
No
public static ConnectApi.Motif getMotif(String communityId, String idOrPrefix)
- communityId
Type: String
ID for an Experience Cloud site,
internal, ornull.- idOrPrefix
Type: String
An ID or key prefix.
Type: ConnectApi.Motif
Each Salesforce record type has its own set of motif icons.
Get a motif for a list of objects.
31.0
No
public static ConnectApi.BatchResult[] getMotifBatch(String communityId, List<String> idOrPrefixList)
- communityId
Type: String
ID for an Experience Cloud site,
internal, ornull.- idOrPrefixList
Type: List<String>
A list of object IDs or prefixes.
Type: ConnectApi.BatchResult[]
The ConnectApi.BatchResult.getResult() method returns a ConnectApi.Motif object and errors for motifs that didn’t load.