Record Photo & Logo Component

Official user guide for administrators and end users.

Record Photo & Logo Component for Salesforce — User Guide

Version: 1.0
Applies to: Salesforce Lightning Experience


1. What Is a Record Photo & Logo Component for Salesforce?

Record Photo & Logo Component for Salesforce is a Lightning Web Component that allows users to upload, crop, and display profile photos directly on Salesforce records.

It provides a clean, profile-style UI similar to modern applications while fully using Salesforce Files and security model

The component works with:

  • Standard objects (Contact, Account, etc.)
  • Custom objects

2. Who This Guide Is For

SectionAudience
Section 3Salesforce Administrators
Section 4End Users

3. For Administrators: Setup

3.1 Assign Permission Set

Users must have access to:

  • Apex class
  • Custom object (Record_Photo_Card_Mapping__c)
  • Files (ContentVersion)

Steps:

  1. Setup → Permission Sets
  2. Open your package permission set
  3. Assign to users

3.2 Add Component to Record Page

  1. Go to Object Manager
  2. Open desired object
  3. Lightning Record Pages
  4. Edit page
  5. Drag Record Photo Card component
  6. Save & Activate

3.3 Configure Component

Component supports:

  • Field display (comma-separated API names)
  • Layout:
    • Horizontal
    • Mirror
    • Vertical

Example:

Name,Email,Phone

Invalid fields are ignored automatically


4. For End Users

4.1 Viewing the Component

On a record page, users see:

  • Profile photo area

  • Optional record fields

  • Upload button


4.2 Uploading a Photo

  1. Click Upload Photo
  2. Select image
  3. Crop image using:
    • drag
    • zoom slider
  4. Save

4.3 Cropping

Before saving, users can:

  • reposition image
  • zoom
  • preview circular crop

The system always saves a square image optimized for avatars


4.4 Replacing a Photo

Uploading a new image:

  • replaces the displayed photo
  • keeps previous files in Salesforce Files

4.5 What Happens After Upload

System automatically:

  • saves file as Salesforce File
  • links it to the record
  • updates the displayed photo

5. How Photo Display Works

The component:

  1. Finds mapping records for the record
  2. Picks the latest one
  3. Displays the associated image

6. Troubleshooting

Photo not displayed

Possible reasons:

  • no photo uploaded
  • file deleted
  • no access to file

Upload fails

Check:

  • file size
  • file format
  • permissions

Fields not visible

Check:

  • Field API names
  • Field Level Security