View as Markdown
Salesforce icon

Salesforce TRIGGER

New Chatter Feed Item (Instant or Polling)

Emit new events for each Chatter FeedItem (post) created in Salesforce, polling FeedItem via SOQL on CreatedDate. Use this to react to Chatter posts on Cases and other records, since Chatter activity does not update the parent record's LastModifiedDate (so New Record (Instant, of Selectable Type) and New Case (Instant, of Selectable Type) never emit for it). Set parentObjectType to the parent object's API name (e.g. Case, Opportunity) to only emit posts whose parent record is of that type. Set excludeSelf to true to drop posts authored by the connected integration user. Note: Body is null for system-generated post types (e.g. TrackedChange). Attempts instant delivery via webhook and falls back to timer polling automatically when the Streaming API does not support this object. See the documentation
  • Trigger
  • Polling
  • OAuth
  • Webhook delivery

IMPLEMENTATION

Deploy this event source

Connect the user's Salesforce account, configure the source, and choose the webhook where your backend receives events.

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 deployed = await pd.triggers.deploy({
  id: "salesforce_rest_api-new-feed-item",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    salesforce_rest_api: { authProvisionId: "apn_xxxxxxx" },
    timer: { "intervalSeconds": 900 },
    parentObjectType: "Parent Object Type",
  },
  webhookUrl: "https://example.com/webhooks/salesforce-rest-api",
})

console.log(deployed.id)

MCP exposes on-demand actions. Event sources are deployed through the Connect SDK or API because they continue listening after the initial request.

SCHEMA

Configuration

These inputs define which events the source watches. Dynamic options are loaded from the connected account.

New Chatter Feed Item (Instant or Polling) configuration
Property Type Description
timer Timer $.interface.timer
The timer is only used as a fallback if instant event delivery (webhook) is not available.
Required
parentObjectType Parent Object Type string
Optional. Only emit posts whose parent record is of this Salesforce SObject API name, e.g. Case or Opportunity (traversal of the polymorphic FeedItem.ParentId). Enforced on both delivery paths: AND Parent.Type = '<value>' in the polling SOQL, and the parent's Salesforce ID key prefix on instant (webhook) deliveries. Leave blank to emit posts on any parent object.
Optional
excludeSelf Exclude Self boolean
Optional. When true, appends AND CreatedById != '<authenticatedUserId>' to filter out posts created by the connected user. The user ID is resolved at runtime via the userinfo endpoint and cached in db.
Optional

01

Connect

Your user authorizes Salesforce through Pipedream managed auth.

02

Deploy

Your backend deploys this source with that user's own configuration.

03

Webhook delivery

Every event is sent to the HTTP endpoint you choose when you deploy the source — after each poll.

OR

On-demand retrieval

No webhook required. Your app or agent can fetch recent events from the trigger events API.

Registry key
salesforce_rest_api-new-feed-item
Version
0.0.6
App
Salesforce
Authentication
OAuth
Delivery
Polling source
Output
Events emitted by Salesforce.