There are many questions out the about how to add @mentions
to a chatter post, but this question is the other way around:
How do I read
@mentions
from aFeedItem
in the trigger context?
I need to be able to reliably get the Ids of any User
record (and maybe Group
record in the future) which is @mentioned
. The idea is that we want to use Apex Sharing
to bridge the gap if someone gets @mentioned
but doesn't yet have access to the record.