I have two SFDC
orgs - org1 and org2. I want to send a POST
request from org1 to org2. I've already created a connected app on org2 and have named credentials + auth provider set up on org1.
More specifically, I want to chatter post
on org2 via the POST
request. I followed the following documentation on chatter api
: https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/quickreference_post_feed_item.htm
Then I logged into workbench and attempted to use the REST
explorer. I selected POST
, the path was /services/data/v47.0/chatter/feed-elements
, and the payload was the following (similar to what's on documentation)
{
"body" : {
"messageSegments" : [
{
"type" : "Text",
"text" : "When should we meet for release planning? "
}]
},
"feedElementType" : "FeedItem",
"subjectId" : "0F91R000000kKT7SAM"
}
The error I keep getting is Service not found at: /services/data/v47.0/chatter/feed-elements
. I'm not sure what I'm doing wrong because the chatter/feed-elements
endpoint is from the documentation. Open to other routes for posting between 2 orgs