View as Markdown
Salesforce icon

Salesforce ACTION

Post a Message to Chatter Feed

Post a Chatter message to a Salesforce record's feed. Use List Case Feed Items to read a case feed, or Create Case Comment to add a case comment instead of a Chatter post. The message is built from segments - a plain string becomes text, and { "type": "Mention", "username": "jsmith" } mentions a user. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Salesforce account once, then configure and run Post a Message to Chatter Feed from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "salesforce_rest_api-post-feed-to-chatter",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    salesforce_rest_api: { authProvisionId: "apn_xxxxxxx" },
    sobjectType: "SObject Type",
    subjectId: "Record ID",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Post a Message to Chatter Feed inputs
Property Type Description
sobjectType SObject Type string
The type of object to select a record from.
Required Dynamic
subjectId Record ID string
The record that will parent the feed item.
Required Dynamic
messageSegments Message segments string[]
Each message segment can be a text string, which will be treated as a segment of type: Text, or a message segment object such as { "type": "Mention", "username": "john" }
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
salesforce_rest_api-post-feed-to-chatter
Version
0.1.7
App
Salesforce
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes