Record Object Examples
These code examples demonstrate how the Record object contains different information depending on whether your canvas app appears in the publisher or the feed.
If your canvas app appears in the publisher, the Record object contains different information depending on whether the publisher appears on a user record, a group record, or an object record.
- User Record
The Record object
Idis theUser.Idand theTypeisUser.- Group Record
The Record object
Idis theCollaborationGroup.Idand theTypeisCollaborationGroup.- Object Record
The Record object
Idis the objectIdand theTypeis the object name, for example,Account.
If your canvas app appears in the feed, the Record object always contains the feed item information whether the feed is on a user record, a group record, or an object record.
The Record object Id is the FeedItem.Id and the Type is FeedItem.