Skip to main content

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.

Who can use this?

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

  1. In Salesforce Setup, enter Flows in Quick Find and open Flows.

  2. Open the flow you want to add the action to, or click New Flow to start one that loops through your uploaded files.

  3. Add an Action element and search for Update Employee Avatar.

  4. Set Employee Id to the employee whose photo you are setting.

  5. Set Image File (ContentDocument Id) to the uploaded file's ID.

  6. 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.