+ Start a Discussion
viddu sonyviddu sony 

Can I post a single picklist field into chatter

Hi All,
          I have a requirement, I need to post a single picklist field into chatter on clicking on a button from a visualforce page. 
Please help me out with it.? 
Alex SelwynAlex Selwyn
If you want to post the change in the picklist field you can setup 'Chatter Feed Tracking'.

Here is an excellent article: https://success.salesforce.com/answers?id=90630000000DCYXAA4

To post from Apex,

//create and insert post
FeedItem post = new FeedItem();
post.Body = 'HelloThere';
post.ParentId = <ID of the Entity where it is posted>;
post.Title = 'FileName';
insert post;

More about FeedItem here: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_feeditem.htm?search_text=FeedItem

Thanks,
Alex.
viddu sonyviddu sony
Hi Alex,
Thank you for the response, 
My requirement is I need to Rate an Employee based on the Rating given by the User's through chatter. When the user rates his Rating, the rating Field value should be stored into another Field.
Please  let me know if you can find any solution.?