function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kannapapikannapapi 

Rich text field in chatter post

Hi,
i am having rich text field in objext, there i am uploading image. Then i am rendering the page as pdf and posting in chatter.
i can able to see all the field values except richtext field in chatter post..
can anyone help on this?

                       PageReference PR=Page.ImagePDF;
                        PR.getParameters().put('id',i.Id);
                        blob pdf = PR.getContent();
                        feeditem a = new feeditem();
                        a.ContentData = pdf;
                        a.Type = 'ContentPost';
                        a.ContentFileName = 'image.pdf';
                        a.parentid = UserInfo.getUserId();
                        insert a;
PratikPratik (Salesforce Developers) 
Hi,

The Rich text field is not supported in chatter.

Refer this:
https://success.salesforce.com/ideaview?id=08730000000Hjs6AAC

Thanks,
Pratik