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
JeffreyStevensJeffreyStevens 

Setting the FROM user when creating an AT Mention

I'm using the ConnectAPI to create a chatter message in APEX, and in the MentionSegmentInput class - I'm setting the the ID of the user that get's mention (mentionSegmentInput.id = ...).  But I don't know how to set the ID of the user that chatter is from?  (right now - it's coming from me - and I want to set it to another user).
 
Anybody know where to look for that?
MagulanDuraipandianMagulanDuraipandian
Jeff,

As far as I know, you cannot do it. The running user is set.
https://infallibletechie.blogspot.com/2016/02/how-to-get-mentioned-user-from-feed.html