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
Hakucho NinHakucho Nin 

insert text data to chatter automatically by python

Hi all,

I want to make a small program by python. This program can insert text data to chatter automaticall. I found that there is no object I could insert text data directly. Is there any solution for me to make a robot program to insert text data to specific chatter group?
Tuan LuTuan Lu
You can use the Chatter rest api to post messages. See example below. Note that you need to get an Oauth token first.
https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/quickreference_post_to_group.htm
 
Hakucho NinHakucho Nin
Hi Lu, Thank you for your reply. I have already created a robot program based on Chatter rest api.
Thank you all the same.