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
theoptheop 

Outbound Message to Chatter

Hi, I have an approval process and would like to post to Chatter group on Approved. I have check the Send Session Id checkbox and here is my endpoint:

 

https://cs12.salesforce.com/services/data/v26.0/chatter/feeds/record/0F9V00000008SF1/feed-items?text=first+outbound+message

 

In the Outboud Messaging Delivery Status I get a faliture reason: (401) Unauthorized What I'm I missing?

Thanks for any help.

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

Outbound Messaging send SOAP formatted messages, the chatter URL you're specifying doesn't support that format. perhaps there's some other type of workflow action you can use to post a chatter message, otherwise you'd probably need to write an apex trigger to do this.

All Answers

SuperfellSuperfell

Outbound Messaging send SOAP formatted messages, the chatter URL you're specifying doesn't support that format. perhaps there's some other type of workflow action you can use to post a chatter message, otherwise you'd probably need to write an apex trigger to do this.

This was selected as the best answer
theoptheop

Thanks, I ended up going the trigger route.