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

Rich text field in chatter post

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;
                        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) 

The Rich text field is not supported in chatter.

Refer this: