Flow: Display Photo or Upload Photo

The flow will display either a photo or remind you to upload one. On any object!

How It Works:

The Flow looks for a file attached to that record with the title “SalesforcePhoto” (or another phrase of your choosing).

The File gets the title from the name of the file when you upload it. If you upload SalesforcePhoto.jpg, the title becomes “SalesforcePhoto.” You could also open the File details in Salesforce and change the title.

If that file is found, it’s previewed thanks to the work of Narender Singh, (of course)!

If not found, it asks you to upload a file from your computer named SalesforcePhoto and attaches it to that record. From then on the, the flow displays the photo!

We are using the app because constituents and donors are more than just a record, and seeing their faces humanizes the data.

Donna, Vote Solar

To Set It Up:

Check the box Pass Record ID into this variable.
  1. Install this package.
  2. Add the flow to your Lightning record page.
    1. Let’s say you want to add this to a contact page, start by looking at a contact record.
    2. Click on the setup gear.
    3. Select Edit Page.
    4. From the list of components on the left, select Flow and drag that into the right column or wherever you want.
    5. Select the flow “Contact Photo Needed.”
    6. Check the box “Pass record ID into this variable.” {!Record.Id} will fill in automatically.
    7. Save. And activate if you need to.
  3. If you want your files to be named something other than “SalesforcePhoto,” open the Flow and modify the constant called PhotoTitle (see video above).


Narender Sigh made the component that previews files. Find that here.

Couldn’t have figured it out without Jennifer W. Lee’s blog post on using Files in flow.

Catch my webinar next week 11/17/21

Join me on 11/17/21 9am PT for the Winter ’22 release webinar for Nonprofits in which I’ll share my favorite flow updates. Register here.

Published by


Jessie joined Salesforce.org in 2018 to give introductory webinars to nonprofit customers. She now is a Senior Solution Developer supporting nonprofits and education customers at Salesforce. All opinions expressed on this blog are her own or those of the contributors. She's spent 17 years more or less in CRMs and databases, but didn't meet Salesforce until 2011. Jessie co-led the Seattle Salesforce Nonprofit User Group in 2015-2016. She wrote a sh*tty first draft of a novel and hopes to turn it into a screenplay!

One thought on “Flow: Display Photo or Upload Photo”

Leave a Reply