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
atulajawaleatulajawale 

Chatter REST API for inserting a chatter post as a different user ???????

Hello ,

 

I am trying to create a chatter posts with @mentions from REST API but want to post these chatter with a different user and not as logged in user for REST API , Can this be possible I know we can do this using apex code by setting CreatedById but @mentions are not possible through APEx hence I am using rest api from salesforce. Please let me know if anybody has any solution for this ?

 

Thanks and Regards,

Atul

Jia HuJia Hu
Based on my understanding, you can't do this by Chatter REST API. Have to use Soap API instead.
atulajawaleatulajawale

Thanks Jia for your reply. Not sure but according to my search we can't post @mentions using soap api this is only possible as of now using REST API. May be I am not correct.

 

ChrisOctagonChrisOctagon

There is no Chatter REST API support for impersonation at this time, sorry.

atulajawaleatulajawale

Thanks Chris .

Deepak PansariDeepak Pansari

Any update so far ?