You need to sign in to do that
Don't have an account?

FeedPost insert with "@mention"
Does anyone know how to insert a FeedPost object with an "@mention" in it?
I've tried doing it manually, then querying for feedPost.body - and it just has plain text of "@UserName"
I assume I have to do something with an id or something in the string? Can't quite figure this out or find documentation.
Thanks,
JNH
Try doing {@userId} if you want the user to receive an email about it or {!userId} if you do not.
I haven't tested this myself, but I believe it should work.
Nope... not working...
tried:
@005A0000000JauJ
@[005A0000000JauJ]
{!005A0000000JauJ}
{@005A0000000JauJ}
{!@005A0000000JauJ}
This all just dumps out plain text... My guess is that we can't hit it with apex yet...
that's @lame
You can't currently do this via Apex (or the Web Services API)