Salesforce Developers interview questions – Most commonly used code snippets – part 21

201. Common Apex page attributes.

<apex:page sidebar="false" standardStylesheets="false" showHeader="false">

202. Declare Visualforce page as HTML5.

<apex:page docType="html-5.0" />

203. Visualforce page output as JSON.

<apex:page controller="ControllerName"  contentType="application/x-JavaScript; charset=utf-8" showHeader="false" standardStylesheets="false" sidebar="false">
{!jsonString}
</apex:page>

Chatter – Collaboration in Cloud

Few Years back, When Chatter was introduced in Salesforce there were many critics on this product. Many Experienced analyst suggested that why do we need Social application inside enterprise application ?

Today, I can’t even imagine Salesforce without Chatter. Its more than just Social, Its all about Communication in Team, Visibility, Collaboration. Success of any product or team depends on how well they are connected ?

Chatter has gone beyond expectation of anyone and thanks to Marc Benioff and Team for such marvelous product. Today we have Publisher Actions, Field Tracking, Chatting, Notifications, Salesforce 1, Chatter REST API etc for Chatter.

How to Start with Chatter ?

There are many sources available on developer force website.

Who has Downloaded My Chatter Files ?

Salesforce is evaluating and enhancing the way we use Files with help of Content and Chatter Files. Customer might want to know that who has downloaded Chatter files on their Local System? In this article, I will explain a little hack on identifying name of Users, who  has downloaded Chatter File from Organization.

There is no Out of box functionality provided by Salesforce yet to view names of users, So we are gonna use either Dataloader or Developer Console, which in turn will use SOQL.

In CRM Content, You can see name of users like below image :