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

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 ( = ...).  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?

As far as I know, you cannot do it. The running user is set.