Skip to main content

Chatter

Explore practical guides and implementation patterns for this topic.

Posts

Topic LWC
Lightning Web Components

Displaying FeedItem Images in Salesforce LWC: Custom Component Guide

In plain words: The Salesforce FeedItem object stores Chatter posts, links, and attachments. When building custom Lightning Web Components (LWC), you can query FeedItem records via Apex to extract image attachments or file references and render them directly onto record pages using standard HTML image tags. Salesforce Chatter provides robust collaboration features through objects like FeedItem and FeedAttachment . However, extracting and rendering images embedded within feed posts inside custom Lightning Web Components requires a combination of server-side Apex queries and client-side reactive property binding. Below is a complete guide to building a custom image-display component for FeedItems.
Read article