Loading

How to Add a Photo or Image to a Salesforce Contact Record

Veröffentlichungsdatum: Oct 8, 2026
Beschreibung

Salesforce does not include a native photo field on the Contact object. Admins can display contact photos using formula fields with the IMAGE() function, rich text area fields, or third-party AppExchange apps.

Lösung

This article explains how to add a photo or image to a Salesforce Contact record. Because the Contact object has no native photo field, use an IMAGE() formula field, a rich text area field, or an AppExchange app.

Option 1: Display a Photo With a Formula Field

  1. Create a public folder to hold your image files.
  2. Upload your image file to your Documents storage area.
  3. Get the URL or link to each of the pictures you uploaded.
    1. Click the View File link next to the name of the file you are going to use.
    2. A new browser window or tab opens. Go to the address bar, highlight the URL, and copy it.
  4. Create a new formula field with the resulting data type text. The data type must be text or the formula does not work. Make sure Advanced Formula is selected.

Example Formula

The following example formula checks the contact's first and last name and displays the matching uploaded picture, sized 100 by 100 pixels. If no name matches, the field stays blank (NULL).

CASE (FirstName & LastName,'Darius' & 'Caravana', IMAGE('/servlet/servlet.FileDownload?file=01590000002E31g',
'DariusPicture', 100, 100), 'Vincent' & 'Sullivan', IMAGE ('/servlet/servlet.FileDownload?file=01590000002E33m', 'VincentPicture', 100, 100), 'Florent' & 'Dean', IMAGE('/servlet/servlet.FileDownload?file=01590000002E33h',
'FlorentPicture', 100, 100), NULL)

Note: Formula fields cannot exceed 4,000 bytes when saved. The save size is different from the number of characters if you use multibyte characters in your formula. This means you can use this approach only for a limited number of Contact records.

Option 2: Use a Rich Text Area Field

Create a rich text area field on the Contact object. Once the field exists, edit a Contact record and click the image icon on the rich text editor. Click choose file and select the image on your computer. Click insert, then save the record.

Option 3: Use an AppExchange App

A free AppExchange application called Photo Uploader might also be helpful. Salesforce Support does not support this application.

Request a Native Contact Photo Field

An active IdeaExchange idea asks for a picture-specific field to be added to Contacts. Admins can view and vote for the idea, Contact.Photo.

Nummer des Knowledge-Artikels

000387140

 
Laden
Salesforce Help | Article