<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Salesforce - How to use Chatter API in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Salesforce-How-to-use-Chatter-API/ta-p/1838768</link>
    <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Here, we are alerting a particular Group of users in Salesforce when a 'Do Reload' responds with a 'FAILED' status.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use a condition block to filter out the 'FAILED' status from the 'Do Reload' block.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="1_condition_block.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62652i5D366308D425135A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1_condition_block.PNG" alt="1_condition_block.PNG" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Next, we'll list out all the 'Collaboration Groups' present in the Salesforce instance and cache them.&lt;/LI&gt;
&lt;LI&gt;Save the ID of the appropriate group to which the alerting message should be sent using a variable block.&lt;/LI&gt;
&lt;LI&gt;Use variable blocks to construct the appropriate 'Body' of the message as per each message body definition (More info &lt;A href="https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_requests_feed_item_input.htm" target="_self"&gt;here&lt;/A&gt;). Using multiple variable blocks of appropriate types help us to construct required JSON bodies. (Refer to &lt;A href="https://community.qlik.com/t5/Knowledge/How-to-construct-JSON-list-in-a-blend/ta-p/1783736" target="_self"&gt;this page&lt;/A&gt; to know more on how to construct JSON object or List on the go in an Automation)&lt;/LI&gt;
&lt;LI&gt;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.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Post_block.PNG" style="width: 313px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62656iB716F98BB3400B45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Post_block.PNG" alt="Post_block.PNG" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;We have built the final message body based on the Failed log of the 'Do Reload' block.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="SFDC_SS.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62654i3CD998CE34E77649/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SFDC_SS.png" alt="SFDC_SS.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Fri, 24 Sep 2021 05:17:21 GMT</pubDate>
    <dc:creator>PradeepUrala</dc:creator>
    <dc:date>2021-09-24T05:17:21Z</dc:date>
    <item>
      <title>Salesforce - How to use Chatter API</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Salesforce-How-to-use-Chatter-API/ta-p/1838768</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Here, we are alerting a particular Group of users in Salesforce when a 'Do Reload' responds with a 'FAILED' status.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use a condition block to filter out the 'FAILED' status from the 'Do Reload' block.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="1_condition_block.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62652i5D366308D425135A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1_condition_block.PNG" alt="1_condition_block.PNG" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Next, we'll list out all the 'Collaboration Groups' present in the Salesforce instance and cache them.&lt;/LI&gt;
&lt;LI&gt;Save the ID of the appropriate group to which the alerting message should be sent using a variable block.&lt;/LI&gt;
&lt;LI&gt;Use variable blocks to construct the appropriate 'Body' of the message as per each message body definition (More info &lt;A href="https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_requests_feed_item_input.htm" target="_self"&gt;here&lt;/A&gt;). Using multiple variable blocks of appropriate types help us to construct required JSON bodies. (Refer to &lt;A href="https://community.qlik.com/t5/Knowledge/How-to-construct-JSON-list-in-a-blend/ta-p/1783736" target="_self"&gt;this page&lt;/A&gt; to know more on how to construct JSON object or List on the go in an Automation)&lt;/LI&gt;
&lt;LI&gt;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.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Post_block.PNG" style="width: 313px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62656iB716F98BB3400B45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Post_block.PNG" alt="Post_block.PNG" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;We have built the final message body based on the Failed log of the 'Do Reload' block.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="SFDC_SS.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62654i3CD998CE34E77649/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SFDC_SS.png" alt="SFDC_SS.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 24 Sep 2021 05:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Salesforce-How-to-use-Chatter-API/ta-p/1838768</guid>
      <dc:creator>PradeepUrala</dc:creator>
      <dc:date>2021-09-24T05:17:21Z</dc:date>
    </item>
  </channel>
</rss>

