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
michael_hymichael_hy 

Use Apex class to send chatter message.

Hello.

So far I want to use Apex class to send chatter message,

And use my mobile app to invoke this Aapex class.

Could anybody can help me about how to do this in Apex?

Is there some Object about chatter message in Apex?

 

Jia HuJia Hu
You have to use Chatter Rest API to insert Chatter Message

Send a private message:
http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resources_how_to.htm#cc_send_message