Import employee profile photos in bulk
flair includes a flow action that sets an employee's profile photo from an image file you have already uploaded to Salesforce. Add it to a flow to import many employees' photos at once, for example when you onboard a new organization.
Salesforce Admins who build flows in Salesforce.
Before you begin
- Upload each employee's photo as a Salesforce File. Name the files so you can match each one to an employee, for example by their company email address.
- Confirm you can create and run flows in Setup.
Import profile photos with a flow
-
In Salesforce Setup, enter
Flowsin Quick Find and open Flows. -
Open the flow you want to add the action to, or click New Flow to start one that loops through your uploaded files.
-
Add an Action element and search for Update Employee Avatar.
-
Set Employee Id to the employee whose photo you are setting.
-
Set Image File (ContentDocument Id) to the uploaded file's ID.
-
Save and run the flow. Each run sets the flow's Employee Avatar Id output to the ID of the created avatar record.
What the action does
- It accepts JPG, PNG, JPEG, and GIF files up to 4 MB. Files outside these limits are rejected.
- If the employee already has a profile photo, running the action replaces it.
- flair generates smaller versions of the photo in the background after the action runs. If your org has not configured image resizing, employees still see the original photo; only the smaller versions are unavailable.
- Each run queues two background resize jobs, so keep a single flow run to around 25 employees to stay within Salesforce's asynchronous job limits.