View as Markdown
Salesforce icon

Salesforce TRIGGER

New Chatter Feed Comment (Instant or Polling)

Emit new events for each Chatter FeedComment (reply) created in Salesforce, polling FeedComment via SOQL on CreatedDate. Use this to react to comments on Chatter posts, since Chatter activity does not update the parent record's LastModifiedDate. The payload includes both ParentId (a polymorphic reference to the feed's parent - either a record feed, e.g. a Case ID starting with 500, or a User feed) and FeedItemId (the ID of the FeedItem the comment belongs to) - these are distinct fields; do not confuse them. Set parentObjectType to a parent object API name (e.g. Case) to only emit comments whose parent record is of that type. Set excludeSelf to true to drop comments authored by the connected integration user. Note: querying FeedComment without a parent filter requires the View All Data permission on the connected user. Attempts instant delivery via webhook and falls back to timer polling automatically. 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-comment",
  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 Comment (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 comments whose parent record is of this Salesforce SObject API name, e.g. Case (traversal of the polymorphic FeedComment.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 comments on any parent object (requires View All Data permission).
Optional
excludeSelf Exclude Self boolean
Optional. When true, appends AND CreatedById != '<authenticatedUserId>' to filter out comments 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-comment
Version
0.0.6
App
Salesforce
Authentication
OAuth
Delivery
Polling source
Output
Events emitted by Salesforce.