Worker Photo Id on Contact (b3s__Worker_Photo_Id__c, Text 18) identifies the worker's current photo. New uploads create a Salesforce File and store its ContentDocument ID, starting with 069. The field also supports legacy Attachment IDs, starting with 00P, in either 15 or 18 character form.
The photo is displayed as an image. Supported formats are JPEG, PNG, GIF and WebP, up to 1 MB. These limits also apply when displaying migrated photos. Resize larger photos before importing or uploading them. A photo is optional by default. The Vendor Portal configuration can require one before users continue past the onboarding Photo step. This does not change credential completion or proposal eligibility.
The packaged Contact Lightning page includes Worker Photo. For a custom page, open Lightning App Builder, add Worker Photo to the Contact record page and activate it. The component has no configuration properties.
Choose Add photo or Change photo, then select a file. Uploading saves immediately, without a separate Contact Save action. The existing photo remains selected if a replacement fails. The component leaves the standard Contact PhotoUrl unchanged; integrations should use b3s__Worker_Photo_Id__c as the source of truth.
WFM Admin includes the field and Apex class access. Users need Contact read/edit access, read/edit on Worker Photo Id, and Salesforce Files access. Record sharing and field permissions apply to internal users.
Workers → Add worker has five fixed steps:
The Photo step is always available, including when the vendor has no onboarding templates. It is built into the application. In the Vendor Portal Component Configuration JSON, set photoRequired on the existing schedulables.worker definition:
{
"schedulables": {
"worker": {
"photoRequired": true
}
}
}
Merge this setting into the existing worker definition; keep its other properties. true marks Photo as Required and prevents Next until a saved, displayable photo is available. A previously uploaded File or migrated Attachment satisfies the requirement. Missing or unreadable photos do not. false or an omitted setting keeps Photo optional; the sample configuration ships false.
This is an onboarding wizard requirement, including Complete onboarding, rather than a Contact validation rule. Users may close the wizard and resume later. Ordinary Edit worker saves are not blocked by it. Worker detail and credential fields remain configurable as before.
For an existing worker, click Edit on its Workers card. The dialog shows the current photo and the worker details, with Add photo or Change photo. Photos save immediately; Save saves worker details. Closing the dialog does not undo a successful photo upload. Complete onboarding starts at Photo and continues through the remaining steps.
The portal contact needs Workers Tab to open the roster and Onboard Workers on the worker's account to upload or replace a photo. The server applies the existing worker-edit rules, including the restriction against editing profiled portal users. WFM VMS Vendor User includes field access for licensed Experience Cloud vendor users. Photos are never exposed through public file URLs.
Client Shift Manager displays the worker photo, when available, on proposal cards in both the Proposals tab and the request management console. This covers shift and booking proposals and supports both Salesforce Files and migrated Attachments. The display is read only. Missing, inaccessible or unreadable photos leave the proposal available for review without an image.
A client sees the photo of a worker only on proposals the client can read. Existing client account membership and proposal read rules apply. WFM VMS Client User grants read access to Worker Photo Id and access to WorkerPhotoService; authenticated users still need record and file sharing. No client configuration change is needed to display photos.
The Client Shift Manager Workers tab also shows the photo of each worker booked in the selected period (see Booked workers). The photo is read through WorkerPhotoService action getBookingPhoto with the Id of one of the worker's bookings: a placement (b3s__Working_Pattern__c) or a shift (b3s__Shift__c).
{ "controllerName": "b3s.WorkerPhotoService", "endp": "getBookingPhoto", "recordId": "a0Y..." }
Response: { "success": true, "responseObject": { "photoId": "069...", "dataUrl": "data:image/png;base64,..." } }, with dataUrl null when the worker has no photo.
The worker is taken from the booking. For governed portal contacts, the booking's job or site account must be one of the contact's accounts granting Tab Workers (b3s__Tab_Workers__c). The action is available to the Client Shift Manager only.
WFM does not read photo fields from other packages. Populate b3s__Worker_Photo_Id__c as part of your migration:
ats__Photo_Id__c), using that package's actual field API name. Keep the referenced Attachments. Each Attachment's ParentId must be the target Contact.068) or ContentDocumentLink ID.For a Data Loader update, map these two columns:
| Column | Value |
|---|---|
Id |
Target Contact ID |
b3s__Worker_Photo_Id__c |
Target Attachment or ContentDocument ID |
Backfill blank Worker Photo Id values unless you deliberately intend to replace newer photos. An Attachment's supported Content Type is used when present; its filename extension is the fallback for missing or unrecognised types. Ensure migrated Files are visible to the intended licensed portal users as well as linked to the Contact. Files uploaded through Worker Photo use AllUsers link visibility, which still requires record access.
Uploading a replacement for an Attachment creates a new File and changes the field to its ContentDocument ID. The old Attachment or File is retained. The component never deletes historical files; retention and cleanup remain administrator decisions.
| Symptom | Check |
|---|---|
| Photo is unavailable | The ID must identify a File linked to this Contact, or an Attachment whose ParentId is this Contact. Deleted files and IDs from another org cannot display. |
| Image cannot be displayed | Verify the actual file is a supported image, and replace corrupt or incorrectly named files. |
| File is too large | Resize it below 1 MB before retrying. The pointer is not changed by a failed upload. |
| Vendor cannot upload | Check Onboard Workers on the worker's account, membership scope, and whether the target Contact holds a profiled account membership. |
| Internal or licensed user receives an access error | Check Contact sharing, field permissions, Files access and Apex class access for WorkerPhotoService. |
New uploads save the File, its Contact link and Worker Photo Id in one transaction. A rejected Contact update rolls back the new File. A photo displays only when its file is linked to that worker's Contact.