I have read some other items on this list that are somewhat the same question as I am about to pose but not exactly - I apologize if this is a duplicate.
I was experimenting with Chatter in our development org and just using Chatter settings (in Setup - Customize - Chatter) I was able to set it so that when you change a lookup field setting on my custom object you get a chatter feed that indicates what the old and new lookup values were related to the change.
An example of the chatter is shown below:
The words 'Samples' and 'Service Loaners' are links to custom objects so if you click on them you go directly to that record in the standard salesforce fashion.
I have a process (APEX) that writes some chatter that is posted to either an Account, Contact, Opportunity or User object but that mentions my custom object in the text of the chatter (e.g. "Assigned Equipment (MyEquipmentName) on (DateOfAssignment)").
Can anyone tell me how I could write a chatter feed item that contains hyperlinks to a my custom object so that someone could click (MyEquipmentName) and be taken to the custom object?