function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
matt lieber 5matt lieber 5 

Chatter RecordId : where to find it ?

hi,

My question is simple: i want to execute this snippet of code: 
http://developer.force.com/cookbook/recipe/posting-a-chatter-mention-via-apex

To post to Chatter.
Where do i find the Record id for the Chatter feed?

thanks,

Matt

Pankaj_GanwaniPankaj_Ganwani
Hi Matt, 

Here record id refers to any object record for which chatter feed tracking is enabled.
matt lieber 5matt lieber 5
Ok - how do i get one ? I can't seem to see an object record id in the URL when I post something into Chatter ..
thanks -
Pankaj_GanwaniPankaj_Ganwani
Are you a chatter user or system admin? If you are system admin, then you can take any object record Id from URL provided that the chatter feed tracking is enabled for it and use it in your code.
matt lieber 5matt lieber 5
Thanks  - i am a system admin, i verified. 
here is what i see on the chatter page (note the URL, not containing the object record).
User-added image
matt lieber 5matt lieber 5
Never mind after i click on a group, i think i see the ID. 
Thanks!
Pankaj_GanwaniPankaj_Ganwani
Hi Matt,

Please use Id of any custom object record or standard object record for which chatter feed tracking is enabled. In other tabs, Devices, Robots etc are the objects, you can use their Ids if chatter is enabled for them.