You need to sign in to do that
Don't have an account?

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;
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;
The Rich text field is not supported in chatter.
Refer this:
https://success.salesforce.com/ideaview?id=08730000000Hjs6AAC
Thanks,
Pratik