Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!

Salesforce - How to use Chatter API

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
PradeepUrala
Former Employee
Former Employee

Salesforce - How to use Chatter API

Last Update:

Sep 24, 2021 1:17:21 AM

Updated By:

PradeepUrala

Created date:

Sep 24, 2021 1:17:21 AM

Attachments

The broader use case of a Salesforce chatter API is to Integrate a third-party web application with Salesforce so it can notify groups of users about events. The 'Post Feed To Chatter Group By Group Id' Block is completely catered to post feed to a particular group. In this article, you can find the same use case is built using the 'Post Feed Item' Block.

Here, we are alerting a particular Group of users in Salesforce when a 'Do Reload' responds with a 'FAILED' status.

  1. Use a condition block to filter out the 'FAILED' status from the 'Do Reload' block.
    1_condition_block.PNG

     

  2. Next, we'll list out all the 'Collaboration Groups' present in the Salesforce instance and cache them.
  3. Save the ID of the appropriate group to which the alerting message should be sent using a variable block.
  4. Use variable blocks to construct the appropriate 'Body' of the message as per each message body definition (More info here). Using multiple variable blocks of appropriate types help us to construct required JSON bodies. (Refer to this page to know more on how to construct JSON object or List on the go in an Automation)
  5. Map the saved ID to the 'Subject Id', constructed message bodies to the 'Body' and 'Capabilities' fields (as raw input) of the 'Post Feed Item' block.
    Post_block.PNG

     

     
  6. We have built the final message body based on the Failed log of the 'Do Reload' block.
    SFDC_SS.png

     

Tags (1)
Labels (1)
Contributors
Version history
Last update:
‎2021-09-24 01:17 AM
Updated by: