Worker onboarding templates give a guided way to onboard a worker. They are a general workforce management feature: the templates, the credential rules and the status engine do not depend on VMS. The Vendor Portal is the first portal surface that uses them, so most of the portal detail below is written for sub-vendors.
An administrator defines a template, for example "Supply teacher" or "Healthcare assistant", listing the credentials (Ticket Types) a worker of that kind should hold, each marked Required or Recommended. The template is made available to the accounts that onboard that kind of worker (for VMS, the vendor accounts that supply them). In the Vendor Portal the vendor then adds a worker through a four step wizard (details, template, extra credentials, propose to invites) that asks for exactly those credentials, and every worker card shows how far the worker has got.
Internal users see the same progress on the Contact record page, check a worker against any template without assigning it, and approve, reject, query or revoke the worker's credentials.
Templates are guidance. They tell a vendor what a well prepared worker of a given kind holds, and they let everyone see at a glance whether a worker is ready.
They do not decide whether a worker may be placed on a particular job. The credentials a specific shift or booking request needs are still its Certificate Requirements (see Credential auto resolution), and those are checked against the worker's Tickets when the worker is proposed and when the proposal is reviewed. A worker whose onboarding is Complete can still be missing a credential a particular job demands, and a worker whose onboarding is Incomplete can still be proposed for a job that does not need the missing credential.
Both features read the same b3s__Ticket__c records, so a credential the vendor uploads during onboarding counts for proposals straight away, and a credential that expires or is revoked shows up on both sides.
| Object | API name | What it represents | Key fields |
|---|---|---|---|
| Onboarding Template | b3s__Onboarding_Template__c |
A named set of credentials. | Name (Template Name), b3s__Description__c (shown when a template is picked for a worker), b3s__Active__c (default checked). |
| Onboarding Template Item | b3s__Onboarding_Template_Item__c |
One credential of a template. Master-Detail to the template (related list Items). | b3s__Ticket_Type__c (required lookup, delete restricted), b3s__Level__c (Required default, or Recommended), b3s__Sort_Order__c (display order), b3s__Instructions__c (shown next to the credential on the onboarding screen). |
| Onboarding Template Assignment | b3s__Onboarding_Template_Assignment__c |
Makes a template available to one account (for VMS, a vendor account). Master-Detail to the template (related list Assignments). | b3s__Account__c (required lookup to the Account, delete restricted). |
| Worker Onboarding | b3s__Worker_Onboarding__c |
A template a worker carries. Master-Detail to the Contact (related list on the Contact). | b3s__Contact__c, b3s__Onboarding_Template__c (required lookup, delete restricted). |
Two existing objects gain fields:
| Field | Type | Purpose |
|---|---|---|
b3s__Ticket_Type__c.b3s__Requires_Start_Date__c |
Checkbox | The wizard shows a mandatory Start Date (the Ticket's Valid From). |
b3s__Ticket_Type__c.b3s__Requires_Valid_Until__c |
Checkbox | The wizard shows a mandatory expiry date (Valid Until). |
b3s__Ticket_Type__c.b3s__Requires_Evidence__c |
Checkbox | The wizard shows a mandatory evidence file upload. |
b3s__Ticket_Type__c.b3s__Requires_Credential_Number__c |
Checkbox | The wizard shows a mandatory Credential Number. |
b3s__Ticket__c.b3s__Credential_Number__c |
Text (255) | The licence or certificate number printed on the credential. |
b3s__Ticket__c.b3s__Approval_Status__c |
Picklist, new value Revoked |
A credential that was valid and has been withdrawn by a reviewer. A revoked credential no longer counts as held. |
A worker can carry several templates. Their credentials are merged into one list (see Status rules).
No status is stored on any of these objects. Every status you see is computed when it is read, from the worker's Tickets as they are at that moment.
The WFM Admin permission set grants full access to the four objects, the new Ticket Type fields and the Onboarding Templates tab. The tab is in the 3B WFM and 3B VMS apps.
Open each Ticket Type a template will use and tick, where it applies:
All four checkboxes are on the shipped Ticket Type layout. They do nothing by themselves: the Vendor Portal configuration decides what they drive (see Wizard credential inputs). The shipped sample shows each wizard input only when its checkbox is ticked and makes it mandatory, and on the plain Add credential form makes Valid From, Valid Until and Credential Number mandatory (still visible) when ticked. A Ticket Type whose row has no visible input simply creates the credential for approval when submitted. The internal Add credential action makes Valid From, Valid Until and Credential Number mandatory when the matching checkbox is ticked.
Upgrading: before this change the wizard always showed Valid From, Valid Until and Evidence. Tick the checkboxes on existing Ticket Types where those inputs are still wanted.
The template record page opens on the Onboarding Template Editor, where the rest of the setup is done on one screen: edit the description, toggle Active, and manage the items (next step).
In the Onboarding Template Editor on the template record page, pick credentials in the Add credential picker (each pick adds a Required item at the end; types already on the template are hidden). For each item you can switch Required / Recommended, type the instructions (saved on Enter or when you leave the field), reorder by dragging the handle or with the up and down buttons, and delete it. Small badges show whether the Ticket Type requires Valid Until or evidence. The editor runs as the signed in user and needs no extra permission beyond access to the objects. The standard Items related list on the Related tab still works too.
Item fields:
| Field | What to enter |
|---|---|
| Ticket Type | The credential. |
| Level | Required counts towards the template status. Recommended is shown on the onboarding screen but never affects the status. |
| Sort Order | Display order, lowest first. Blank items sort last, then by Ticket Type name. The editor rewrites it as 10, 20, 30 when you reorder. |
| Instructions | Optional text shown next to the credential, for example which document to upload or where to get it. Links are clickable on the internal component. |
A template with no Required items is always Complete.
On the template's Assignments related list (Related tab), add one assignment per Account that may onboard workers with it. In the Vendor Portal a vendor only ever sees templates assigned to its own accounts. Internal users can check and assign any active template.
Untick Active to retire a template. It disappears from the Vendor Portal template list and the internal template picker, so nobody can assign it to a new worker. Workers who already carry it keep being evaluated against it.
Removing an assignment works the same way for that vendor: no new workers can be given the template, existing Worker Onboardings stay.
The vendor contact's User Profile needs Onboard Workers (b3s__Onboard_Workers__c) to see templates and onboard against them, plus Workers Tab (b3s__Tab_Workers__c) to open the tab. See VMS access profiles and account memberships.
Everything happens on the Workers tab.
Contacts with Onboard Workers can choose Add worker to open the five-step wizard. Worker details are required. Photos save immediately. The worker and template steps save when you choose Next, so you can close the wizard and return later. If a save fails, the wizard stays on that step and shows the error.
Step 1, Worker details. The worker form (the definition's worker.recordFormFields) is shown inline. Next validates and saves the Contact.
Step 2, Photo. Drop a photo onto the upload area, or click or tap it to choose a file. If schedulables.worker.photoRequired is true, Next requires a saved, displayable photo. An existing File or migrated Attachment qualifies. The photo saves to Worker Photo Id on the Contact. The same editor is available in Workers > Edit. Worker photos
Step 3, Onboarding template. Open Onboarding templates to select one or more templates. Each option shows its description and, for an assigned template, the worker's status. Search appears when there are more than five options. On phones the list opens from the bottom of the screen. The field shows the selected names, with guidance under ?. Each requested credential appears once, with its Required or Recommended badge, current status and instructions.
schedulables.worker.templateRequired is true and the vendor has templates, select at least one to continue. Otherwise Next accepts an empty selection.Next links the selected templates to the worker, creates one Ticket per submitted row and uploads its evidence. The Ticket starts with a blank Approval Status. Its dates and the effective approval settings determine whether it counts as Valid. If a save or upload fails, the wizard shows the error and refreshes the rows. Select Next again to retry the outstanding items.
Step 4, Additional credentials (optional). Lists the worker's credentials that are not on the template rows. Add credential opens the standard ticket form (the definition's ticket.recordFormFields) with the worker filled in; it saves straight away. Edit is offered while the Ticket's approval status is blank, Queried or Rejected.
Step 5, Propose to invites (optional). A searchable list of the vendor's open, accepted invites the worker may be proposed to: the same rules as the Invites tab's Propose button (Propose Workers on the invite, not expired or ended, request not canceled or complete), minus invites the worker already has an active proposal on. Each invite has a Propose button that opens the same proposal wizard as the Invites tab's Propose (proposal form, then which credentials travel with it), with the worker already filled in. Proposals are made one at a time; once one saves, that invite drops off the list. Everything from the earlier steps is already saved, so the footer button is Close. Without Propose Workers the list is empty and Close just closes.
Each worker card has a Complete onboarding button (shown when the vendor has templates and holds Onboard Workers on the worker's account). It opens the same wizard on the Photo step for that worker. Continuing loads the assigned templates. Use it to finish skipped credentials, renew credentials, add another template, or propose the worker. Back reaches the worker details.
Every worker who carries at least one template shows an onboarding badge next to their name:
| Badge | Meaning |
|---|---|
| Complete (green) | Every Required credential of every template is valid. |
| Pending (blue) | Nothing is missing or failed, but at least one Required credential is awaiting review or not yet in force. |
| Incomplete (amber) | At least one Required credential has never been submitted. |
| Action Needed (red) | At least one Required credential is expired, rejected or revoked. |
Workers with no templates show no badge. The badges load each time the Workers tab opens, in one server call for the whole roster.
The existing Add credential button on each worker card stays. It is the free form way to add any credential, whether or not a template asks for it, and it does not apply the Ticket Type Requires checkboxes.
The Worker Onboarding Status Lightning component (workerOnboardingStatus) shows one worker's onboarding on the Contact record page. The packaged Contact Lightning page places it on the VMS tab. To add it to your own page, edit the Contact record page in Lightning App Builder and drag Worker Onboarding Status onto it. It has no properties. The Contact page layout also gets a Worker Onboardings related list.
What it shows:
The template picker lists every active template, whether or not it is assigned to the worker's vendor account.
Internal users can assign any active template to any worker they can edit. Assignment to the vendor's account only governs what the vendor can do in the portal.
Each row has an actions menu:
| Row status | Actions |
|---|---|
| Pending (with a Ticket) | Approve, Reject, Query |
| Valid | Revoke (asks for confirmation; the worker no longer counts as holding the credential) |
| Missing, Expired, Rejected, Revoked | Add credential |
Approve, Reject, Query and Revoke set the Ticket's Approval Status and stamp its Reviewed Timestamp, the same review the VMS proposal credential components use.
Add credential opens a standard record form for a new Ticket with the worker and Ticket Type filled in, the item instructions shown on top, Valid From, Valid Until (mandatory when the Ticket Type requires it) and Approval Status. Field level security and validation rules apply. When the Ticket Type has Requires Evidence, a second step offers a file upload to attach to the new Ticket; it can be skipped.
The component runs as the signed-in user. The user needs read access to the template objects, create and delete on Worker Onboarding to assign and unassign, and edit on Ticket to review. WFM Admin grants all of these.
Status is worked out in three levels.
Each of the worker's Tickets of the item's Ticket Type gets a status. "Today" is the current date on the server.
| Ticket | Status |
|---|---|
Approval Status Rejected |
Rejected |
Approval Status Revoked |
Revoked |
| Valid Until before today (any other approval status) | Expired |
Dates cover today and the ticket is Approved or exempt from approval through the Ticket Type or the WFM Disable Ticket Approval setting |
Valid |
Anything else: approval required with status blank, Submitted or Queried, or a Valid From in the future |
Pending |
| No Ticket of that type | Missing |
The worker's best Ticket wins, in this order: Valid > Pending > Expired > Rejected > Revoked > Missing. Between two Tickets with the same status, the one with the later Valid Until wins (a blank Valid Until counts as open ended). So a worker who renewed an expired DBS check shows the new one as Pending, then Valid once approved (or immediately Valid when approval is not required and its dates allow it), and the old expired Ticket no longer matters.
Only Required items count. Each Required item maps to a template level status, and the worst one wins:
| Item status | Counts as |
|---|---|
| Valid | Complete |
| Pending | Pending |
| Missing | Incomplete |
| Expired, Rejected, Revoked | Action Needed |
Order, worst first: Action Needed > Incomplete > Pending > Complete. Recommended items never change the template status, whatever their own status.
The worker's status is the worst status across all templates they carry. A worker who carries no template is Not Assigned.
When a worker carries several templates, their items are merged into one list with one row per Ticket Type:
Each template's own status is still computed from its own Required items.
Because status is computed on every read, onboarding also works as a renewal tracker. When a credential's Valid Until passes, or a reviewer revokes it, every template that requires it turns Action Needed and the worker badge turns red in both the Vendor Portal and the Contact record page. The vendor opens Complete onboarding, clicks Renew on the row (or fills in the now editable row) and submits the new credential, which shows as Pending until a reviewer approves it, or Valid when approval is not required and its dates allow it.
There are no notifications or scheduled alerts. The status changes the next time someone looks. To alert on upcoming expiries, build a report or Flow on b3s__Ticket__c.b3s__Valid_Until__c.
b3s__Ticket__c.The permission reference is in VMS access profiles and account memberships.
b3s.OnboardingTemplateService is a global Callable service, called through the remoting router like the other services in the Apex and automation API reference. The Vendor Portal uses it for the worker badges and the wizard. You can call it from your own Apex or from an integration.
| Action | Purpose | Key args |
|---|---|---|
getOnboardingStatus |
Onboarding status for one or more workers. | contactIds (list, required), templateIds? (list), appType?, sessionKey? |
templateIds, each worker is evaluated against the templates they carry (their Worker Onboardings).templateIds, every worker is evaluated against exactly those templates, assigned or not (an ad hoc check). The assigned flag on each template says whether the worker carries it.ErrorResponse): Missing contactIds, contactIds must be a list of Ids, Invalid Id [<value>] in contactIds, Your profile does not allow viewing these workers., This onboarding template is not available to your account., Invalid session.Request:
{
"endp": "getOnboardingStatus",
"contactIds": ["0035g00000AbCdEAAZ"],
"appType": "Vendor Portal",
"sessionKey": "<session key>"
}
Response (SuccessResponse):
{
"success": true,
"responseObject": {
"workers": [
{
"contactId": "0035g00000AbCdEAAZ",
"status": "Action Needed",
"templates": [
{
"templateId": "a1F5g00000OnBrDEAZ",
"name": "Supply teacher",
"assigned": true,
"workerOnboardingId": "a1H5g00000WoNbDEAZ",
"status": "Action Needed"
}
],
"items": [
{
"ticketTypeId": "a0T5g00000DbScKEAZ",
"ticketTypeName": "Enhanced DBS",
"level": "Required",
"instructions": "Upload both pages of the certificate.",
"requiresValidUntil": true,
"requiresEvidence": true,
"templateIds": ["a1F5g00000OnBrDEAZ"],
"status": "Expired",
"ticketId": "a0U5g00000TkT1aEAZ",
"validFrom": "2023-09-01",
"validUntil": "2026-08-31",
"approvalStatus": "Approved"
},
{
"ticketTypeId": "a0T5g00000FrStAEAZ",
"ticketTypeName": "Paediatric first aid",
"level": "Recommended",
"instructions": null,
"requiresValidUntil": false,
"requiresEvidence": false,
"templateIds": ["a1F5g00000OnBrDEAZ"],
"status": "Missing",
"ticketId": null,
"validFrom": null,
"validUntil": null,
"approvalStatus": null
}
]
}
]
}
}
| Field | Meaning |
|---|---|
workers[].status |
Worker status: Complete, Pending, Incomplete, Action Needed or Not Assigned. |
templates[].assigned / workerOnboardingId |
Whether the worker carries the template, and the Worker Onboarding that links them (null on an ad hoc check of an unassigned template). |
templates[].status |
Template status from its Required items. |
items[] |
The merged credential list, one entry per Ticket Type. |
items[].status |
Item status: Valid, Pending, Expired, Rejected, Revoked or Missing. |
items[].ticketId, validFrom, validUntil, approvalStatus |
The Ticket that decided the status (the best one), or null when Missing. |
The Vendor Portal Component Configuration needs two schedulables and two loaders. The shipped sample configuration (WFM_Vendor_Portal) includes all of them. Existing orgs add them to their own configuration.
Schedulables (inside schedulables):
"worker": {
"objectType": "Contact",
"accountFieldPaths": ["AccountId"],
"nameFieldPath": "Name",
"...": "..."
},
"onboardingTemplate": {
"objectType": "b3s__Onboarding_Template__c",
"nameFieldPath": "Name",
"descriptionFieldPath": "b3s__Description__c",
"activeFieldPath": "b3s__Active__c",
"canEdit": false,
"canDelete": false
},
"workerOnboarding": {
"objectType": "b3s__Worker_Onboarding__c",
"accountFieldPaths": ["b3s__Contact__r.AccountId"],
"contactFieldPath": "b3s__Contact__c",
"templateFieldPath": "b3s__Onboarding_Template__c",
"templateNameFieldPath": "b3s__Onboarding_Template__r.Name",
"canEdit": false,
"canDelete": false
}
The inputs of each credential row in wizard step 2 come from the ticket schedulable's onboardingFormFields: an ordinary form field list (same shape as recordFormFields), rendered once per row with the worker and Ticket Type already set. Admins add, remove or reorder inputs (any b3s__Ticket__c field, or a field-file-upload for evidence) and drive them with the standard showIf / required conditions. Without the key the rows have no inputs.
Two things are available to conditions:
{ "field": "b3s__Ticket_Type__c", "fieldLoader": "ticketTypes", "fieldLoaderField": "b3s__Requires_Evidence__c", "operator": "equals", "value": true }. Any field you reference must be in the ticketTypes loader's fieldToLoad (the sample loads the four Requires checkboxes and Approval Not Required). Custom Ticket Type fields work the same way.$item.level (Required / Recommended) and $item.status (the item status). $-prefixed keys are never saved.The sample ships:
"onboardingFormFields": [
{ "field": "b3s__Valid_From__c", "type": "field-date-input", "required": true,
"showIf": { "condition": { "allOrSome": "all", "selectors": [
{ "field": "b3s__Ticket_Type__c", "fieldLoader": "ticketTypes",
"fieldLoaderField": "b3s__Requires_Start_Date__c", "operator": "equals", "value": true } ] } } },
{ "field": "b3s__Valid_Until__c", "...": "same, on b3s__Requires_Valid_Until__c" },
{ "field": "b3s__Credential_Number__c", "type": "field-text", "...": "same, on b3s__Requires_Credential_Number__c" },
{ "field": "", "labelOverride": "Evidence", "type": "field-file-upload",
"props": { "maxFileSize": 6000000, "multiple": true }, "...": "same, on b3s__Requires_Evidence__c" }
]
For example, to ask for evidence only on Required items, add a second selector { "field": "$item.level", "operator": "equals", "value": "Required" } to the evidence field's showIf. Evidence files upload to the new Ticket after it saves; a failed upload is retried on the next Next.
Add nameFieldPath to the existing worker schedulable as well; the wizard uses it to show the worker's name. The wizard saves credentials through the existing ticket schedulable keys (contactFieldPath, ticketTypeFieldPath; validFromFieldPath / validUntilFieldPath for the date order check). Add b3s__Credential_Number__c to the tickets loader and the ticket forms to show it. Step 3 rows render ticket.onboardingFormFields (see Wizard credential inputs). Step 4 uses ticket.recordFormFields and approvalStatusFieldPath; step 5 reads the invites / proposals loaders and proposes through the proposal wizard (proposal.recordFormFields, with contactFieldPath pre-filled).
Loaders (in b3s__Loaders__c):
{
"name": "onboardingTemplates",
"objectName": "b3s__Onboarding_Template__c",
"filterRecordsBy": [
"Id IN (SELECT b3s__Onboarding_Template__c FROM b3s__Onboarding_Template_Assignment__c WHERE b3s__Account__c IN :accountIds(b3s__Onboard_Workers__c)) AND b3s__Active__c = true"
],
"groupRecordsBy": "Id",
"fieldToLoad": ["Name", "b3s__Description__c", "b3s__Active__c"]
},
{
"name": "workerOnboardings",
"objectName": "b3s__Worker_Onboarding__c",
"filterRecordsBy": ["b3s__Contact__r.AccountId IN :accountIds"],
"groupRecordsBy": "Id",
"fieldToLoad": [
"b3s__Contact__c",
"b3s__Onboarding_Template__c",
"b3s__Onboarding_Template__r.Name",
"b3s__Contact__r.AccountId"
]
}
The Workers tab refreshes both loaders. Set schedulables.worker.photoRequired to require a saved photo in step 2. Set schedulables.worker.templateRequired to require a template in step 3 when the vendor has one to choose from. Both default to false. When onboardingTemplates returns no rows, the wizard explains that no templates are available and hides Complete onboarding on worker cards. The workerOnboardings loader determines which workers get a badge.
Keep the names onboardingTemplates, workerOnboardings, onboardingTemplate and workerOnboarding; the app looks them up by name. The vendor facing labels (wizard text and status names) are in the onboarding section of the Vendor Portal translations and can be overridden with an App Translation record.
b3s__Ticket__c when every channel must enforce them.On the Ticket Type record, check Approval not Required (b3s__Approval_Not_Required__c) and save. The checkbox defaults to unchecked, preserving the existing approval requirement. WFM Admin grants edit access; grant read access to this field in any custom permission sets used by authenticated portal users.
When checked, a supplied credential counts as Valid without changing its Approval Status. This applies to existing and new credentials in onboarding status, proposal checks and portal badges after refreshing. Blank, Submitted and Queried approval statuses no longer keep that credential Pending. Clearing the Ticket Type checkbox restores the approval requirement on the next status check when Disable Ticket Approval is off.
Validity dates still apply: future Valid From is Pending, past Valid Until is Expired, and expiry before a requisition ends remains a proposal gap. Rejected and Revoked credentials remain invalid. A missing credential is still Missing; the checkbox does not waive the requirement to supply it or the onboarding evidence requirements.
For existing Vendor Portal and Client Shift Manager configurations, add this property to schedulables.ticket when upgrading, so portal badges load the setting:
"approvalNotRequiredFieldPath": "b3s__Ticket_Type__r.b3s__Approval_Not_Required__c"
Also add b3s__Ticket_Type__r.b3s__Approval_Not_Required__c to the fieldToLoad array of the Vendor Portal tickets loader and the Client Shift Manager vmsTickets loader.
Deploy the updated portal bundles with the field and server changes. The supplied configurations include this property. Custom Ticket Type page layouts must also expose the checkbox.
In Setup > Custom Settings, choose Manage beside WFM (b3s__Scheduler__c). Enable Disable Ticket Approval (b3s__Disable_Ticket_Approval__c) on the organization default to apply it across the org. WFM also supports profile or user overrides. The setting defaults to off.
The effective setting applies the next time the portal loads.
Clear the setting and reload to return to the approval policy on each Ticket Type.
Verify both parts of the active portal Component Configuration: schedulables.ticket.approvalNotRequiredFieldPath must point to b3s__Ticket_Type__r.b3s__Approval_Not_Required__c, and the credential loader must include that same relationship field in fieldToLoad (tickets in Vendor Portal, vmsTickets in Client Shift Manager). The mapping alone does not cause the loader to fetch the field. Deploy both configuration changes, then reload the portal to discard the previously loaded ticket records. If the warning persists, check the credential's Valid From date and that the updated portal bundle is deployed.