Friday, June 1, 2012

Visual Force Chatter Code


Visual Force Chatter:

 Now we can implement chatter in Visualforce page through one tag   <chatter:feedWithFollowers>
in which we can pass entityId. Rest of the thing will do by sales force and take all followers and chatters in VF Page.

Code Sample :-

 <apex:page standardController="Lead">

   <chatter:feedWithFollowers entityId="{!Lead.id}"/>

  Above Example Shows Feed of Lead name {!Lead.Name}.

</apex:page>

    This <chatter:feedWithFollowers entityId="{!Lead.id}"/>  will return all the chatter info for particular Lead ID.

No comments:

Post a Comment