Create Comment On Feed

Salesforce Chatter provides a host of collaboration features to applications built on Force.com. This activity enables you to post a comment on a particular feed. To achieve this, add this activity to your canvas, and configure it. Select the appropriate access token for Salesforce Chatter. If you haven’t created an access token, select ‘Add New’ to create one. 

In the ‘Instance URL’ field, specify the instance URL of your Salesforce account. The instance URL is the first part of the URL that you see in the browser’s address bar after signing in to your Salesforce account (e.g., https://na15.salesforce.com). 

Then, provide the ID of the feed element to which you wish to comment in the ‘Feed Element ID’ field. Lastly, enter the body text of your comment in the ‘Post text’ field. Once you have entered these details, click on ‘Done’ and run the flow. This will post a comment on the specified feed. 

create-comment-on-feed

Output:
  • output-arrow salesforce-chatter-128 Create Comment On Feed
    • left-triangle user object
      • left-triangle id string
      • left-triangle name string
      • left-triangle url string
    • left-triangle body object
      • left-triangle text string
    • left-triangle clientInfo object
      • left-triangle applicationName string
      • left-triangle applicationUrl any
    • left-triangle parent object
      • left-triangle id string
      • left-triangle url string
    • left-triangle createdDate string
    • left-triangle feedElement object
      • left-triangle id string
      • left-triangle url string
    • left-triangle id string
    • left-triangle type string
    • left-triangle url string