In the previous chapters, we learned what Chatter is, and how to configure Chatter for your organization. We also discussed how to create groups, add/remove a member from a group, invite your customers to Salesforce Chatter, manage files, update status, feed tracking, and so on. We also learned how to set up an e-mail for Chatter newsletters and publisher actions. In this chapter, we will discuss how to use Chatter with the Visualforce page, and later on we will go through some Chatter recipes such as how to turn a group into a notice board and so on. In this chapter, we will cover the following topics:
To customize the functionality of Chatter, we can use Salesforce Apex and Visualforce pages as per our needs. Here we will discuss few sections of Chatter in detail.
Starting with Apex and Visualforce coding, it's recommended to create a developer account. Once the developer account is active, navigate to the user record by following the path Name | Profile | User to enable the development mode. You can enable it to create a Visualforce page by entering a name in the URL (/apex/Your_PageName
).
In this chapter, we have provided example code snippets. However, the complete code can be downloaded from www.packtpub.com/support.
A chat window is a box where you can chat with your followers in real time; it will send/receive your message immediately. To display the chat window in the Visualforce page, we have the following two ways.
Follow the given steps:
To display the chat window on selected Visualforce pages, go ahead with the following method.
To enable chat settings for a particular Visualforce page, perform the following steps:
/apex/PageName
after https://InstanceName.salesforce.com
), and add a Showchat="true"
attribute under the <apex:page>
tag as shown in the following code:<apex:page showChat="true"/>
18.117.75.10