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:

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