The Client Shift Manager is the client facing self service scheduling portal in the WFM+VMS package. It is where an end client's own contacts raise and track their staffing needs without a scheduler having to key anything for them. A client contact can view their schedule, create single or repeating shifts, raise demand shifts and booking requests, and, when VMS is switched on, broadcast those requisitions to vendors and review the workers those vendors propose.
The app has two faces that share one configuration record:
The intended user is an end client contact (a manager at a customer or site who books staff), not an internal recruiter or scheduler. Internal staff use the Scheduler app instead.
The portal runs as a guest user surface, embedded either on the packaged host page or as a drag and drop block inside a 3B Portals site. Every request must carry a valid, unexpired session key that identifies one Contact. The app acts only as that contact, so each client sees and acts on its own data only. Authenticated community users are also supported and run with standard object and record security.
Everything the portal shows is scoped to the accounts the contact acts for. For a contact without an access profile that is the contact's own Account, as before. For a governed contact it is every account they hold an Account Membership for, each with its own User Profile of permissions. Throughout the shipped configuration this is expressed with the :accountIds token, for example a shift is only visible when its job or site belongs to one of those accounts:
b3s__Work_Job__r.b3s__Account__c IN :accountIds
b3s__Work_Site__r.b3s__Account__c IN :accountIds
:accountIds(<permission>) narrows the list to the accounts whose profile grants that permission, for example :accountIds(b3s__Tab_Costs__c) on the Costs tab. Profiles, memberships, the tokens and the server enforcement are documented in VMS access profiles and account memberships.
When the definition runs VMS (it declares a proposal schedulable or a top level vmsWorkflowMode key), the Client Shift Manager requires a profile: a contact with no profile on any membership (or on the Contact) sees "Your profile is not yet configured" in the VMS view. Without either key, contacts without a profile are not gated at all.
For the wider access and session model see the VMS guide and standalone VMS setup.
The whole app is driven by one Component Configuration Custom Metadata record with b3s__Type__c = "Client Shift Manager". Its b3s__JSON__c field holds the app definition: global options, the schedulables map, the badges and dashboard widgets. The data each part of the app loads comes from child Component Loader records linked to that configuration. A record of each is included as sample configuration with the package, and is the fastest starting point for a new deployment.
The JSON dialect (field paths, title blocks, selectionClause, condition objects, formatters) is shared across every WFM app. This article covers what is specific to the Client Shift Manager; for the shared grammar see the app definition JSON reference and the record form field reference.
These live at the root of b3s__JSON__c.
| Key | Controls |
|---|---|
timezonePreference |
client renders times in the site or client timezone; user uses the running user's timezone. |
is24Hour |
24 hour vs 12 hour time display. |
firstDay |
First day of the week (0 = Sunday, 1 = Monday) for the calendar, the Schedule tab and the bulk shift creator's day toggles and preview month. Leave it out to follow the user's browser locale (for example Sunday for en-US, Monday for en-GB). |
syncTimeout |
Interval, in seconds, for the background delta sync of the regular view's loaders. The VMS loaders are deliberately excluded from this sync. |
vmsWorkflowMode |
autonomous (default) or mediated. The default routing for client accounts whose VMS Workflow Mode (b3s__VMS_Workflow_Mode__c) is blank: mediated counts as MSP. A client account set to Marketplace or MSP overrides it. See Routing per client account. Its presence (any value), like the proposal schedulable, also makes access profiles mandatory for this app. |
includeMasterVendorDefault |
true starts the broadcast modal's Include master vendor toggle switched on. Default false. See The master vendor in the broadcast modal. |
staleRequestDays |
Days an ended, unfilled VMS request stays under Stale on the Requests tab. Default 90; 0 hides it as soon as it ends. Not read by the server-paged list, whose scope clauses carry the days. See Request list scopes. |
lists |
lists.requests switches the Requests tab to server paging, sorting and search. See Server-paged Requests list. |
schedulables |
The object definitions, keyed by name. Presence of certain keys switches whole features on. |
badges |
Count widgets shown on the VMS entry point and tabs. |
dashboard |
Widgets rendered on the VMS home tab. |
Trimmed root of the shipped record:
{
"timezonePreference": "client",
"firstDay": 0,
"syncTimeout": 10,
"is24Hour": true,
"vmsWorkflowMode": "autonomous",
"badges": [ ... ],
"dashboard": [ ... ],
"schedulables": { ... }
}
Each key under schedulables binds one object to the app and carries its field paths, recordFormFields, title display blocks, filters, selectionClause and permission gates. Some keys power the regular view; others exist purely to enable and shape the VMS view.
| Key | Object (objectType) |
Purpose |
|---|---|---|
shift |
b3s__Shift__c |
The core shift used across the calendar, forms and bulk creation. |
bookingRequest |
b3s__Booking_Request__c |
A standalone requisition for a working pattern rather than a single dated shift. |
break |
b3s__Break__c |
Child breaks on a shift. |
task |
b3s__Shift_Task__c |
Child tasks on a shift. |
requirement |
b3s__Certificate_Requirement__c |
Per request credential requirements attached to a shift or booking request. |
proposal |
b3s__Worker_Proposal__c |
Vendor proposed workers. Its presence is what enables the whole VMS view. |
invite |
b3s__Vendor_Invite__c |
A broadcast of a requisition to one vendor. |
vendor |
b3s__Group_Assignment__c |
A vendor in the client's pool. |
sharedWorker |
b3s__Shared_Worker__c |
A worker a vendor has shared with this client, for the direct request flow. |
ticket |
b3s__Ticket__c |
A worker's held credential, checked against requirements. |
placement |
b3s__Working_Pattern__c |
A worker's placement, created on approval of a booking request proposal. |
scheduledShift |
b3s__Shift__c |
Filled VMS shifts on the Schedule tab. |
cost |
b3s__Pay_Bill_Staging__c |
Bill lines shown to the client on the Costs tab. |
invoice |
b3s__Invoice__c |
Issued client invoices on the Invoices tab. Its presence shows the tab. |
invoiceLine |
b3s__Invoice_Line__c |
Lines of an expanded invoice. |
message |
b3s__VMS_Message__c |
Per invite chat messages. |
A direct worker request stamps the proposal with Requested_By__c = Client and the requesting contact, through the proposal keys requestedByFieldPath and requestedByContactFieldPath. The master vendor can request the same shared workers from the VMS Command Center; those proposals show Master Vendor in the Requested By column (requestedByContactNameFieldPath and both fields in the vmsProposals loader's fieldToLoad).
Feature gating is driven off these keys. The single most important one is proposal: if it is present the app treats VMS as enabled and shows the VMS entry button; if it is absent, the app is a plain scheduling portal with no vendor features at all.
Each schedulable can carry canEdit, canDelete, canCreate and canReschedule, either a plain boolean or a condition object evaluated against the record. The shipped shift only lets a client edit a shift while it has not been through approval:
"canEdit": {
"condition": {
"allOrSome": "some",
"selectors": [
{ "field": "b3s__Approval_Status__c", "operator": "isnull", "value": true },
{ "field": "b3s__Approval_Status__c", "operator": "equals", "value": "Submitted" }
]
}
},
"canDelete": {
"condition": {
"allOrSome": "all",
"selectors": [
{ "field": "b3s__Approval_Status__c", "operator": "isnull", "value": true }
]
}
}
On top of the per record gates above, every VMS tab and action is gated by the contact's User Profile for the record's account. The full matrix is in VMS access profiles and account memberships. In short:
Tab_Requests__c, Tab_Proposals__c, Tab_Workers__c, Tab_Schedule__c, Tab_Costs__c, Tab_Timesheets__c. Home is always shown.Manage_Pattern_Types__c, Manage_Shift_Requests__c, Manage_Booking_Requests__c, Manage_Credentials__c, Broadcast_Requirements__c, Request_Workers__c, Review_Proposals__c, View_Worker_Evidence__c, Use_Chat__c, Approve_Requisitions__c.Manage_Shift_Requests__c gates the create and bulk create buttons and each shift's edit and delete.To check a permission against a record's own account, each schedulable declares accountFieldPaths, for example "accountFieldPaths": ["b3s__Work_Job__r.b3s__Account__c", "b3s__Work_Site__r.b3s__Account__c"] on shift.
Requisition approval moved to profiles. The Contact flags VMS_Approver__c and VMS_Requires_Approval__c are removed from the package (deprecated in your org after the upgrade), and the definition keys userApproverFieldPath and userRequiresApprovalFieldPath are no longer read. Approve and Reject on a Pending Approval requisition now need Approve Requisitions on the request's account. Requests raised for an account whose profile has Requires Requisition Approval start as Pending Approval; the status is stamped server side on create and when an existing request is switched to VMS. The approval status field is protected on every portal session: only an Approve Requisitions grant can set it to anything other than Pending Approval. Remove the two keys from existing definitions.
Give every VMS portal contact an access profile so these gates apply.
The shift schedulable renders the calendar and record list. It declares the time fields (startFieldPath, endFieldPath, absoluteStartFieldPath, absoluteEndFieldPath, actualStartFieldPath, actualEndFieldPath), the status and contact paths, and a totalHoursFieldPath used for per day hour totals. Its selectionClause is what scopes visible shifts to the client's account (and, in the sample, also to any worker placed at the client). Its filters array defines the contact, job, site and status filters shown above the list, and its title array defines the card layout, including nested child sections for breaks and tasks.
The create and edit form comes straight from shift.recordFormFields. Each entry is a field control (a type such as field-time-range-selector, field-select, field-number-input, field-text-area), a separator, or a child record section. Selects can draw their options from a named loader, for example the Job select pulls from the jobs loader:
{
"field": "b3s__Work_Job__c",
"labelOverride": "Job",
"type": "field-select",
"loader": "jobs",
"optionLabelField": "Name",
"optionsInPopout": true,
"views": { "blukCreateView": true }
}
Conditional visibility is handled with showIf (and showOptionIf to filter a select's options against another field). In the sample, the Site Location select only appears once a Site is chosen, and only offers locations belonging to that site.
The views.blukCreateView: true flag marks a field so it also appears in the per week template row of the bulk creator. The bulk creator is a two step wizard. Step 1, Dates & Shifts, holds the date range and one or more Monday to Sunday week templates (a day toggle with per day start and end times, plus a shift count and the bulk view fields). Next checks the inputs, generates the shifts and opens step 2, Preview: a month calendar of the generated shifts, where clicking a shift removes it. Save (on the Preview step only) creates them all at once. Back returns to step 1 with every value kept; going forward again regenerates the preview, so shifts removed in the preview come back. For this to compute per day times the shift schedulable must declare startFieldPath and endFieldPath. A shiftBulkViewTitle array controls how each generated shift is summarised in the preview.
Each selected day in a week template has its own Start and End time, the same way the working pattern builder works. Selecting a day reveals its time inputs. When you enter a time on one day it is copied to every other selected day that does not have that time yet, and a day you select later inherits the last times you entered in that template, so a Monday to Friday 07:00 to 14:00 pattern takes two entries. Days can still be changed individually afterwards. Times are wall clock times in the app timezone and are written to the fields named by the shift schedulable's startFieldPath and endFieldPath (for example b3s__Scheduled_Start_Time__c and b3s__Scheduled_End_Time__c). An end time at or before the start time is treated as an overnight shift ending the next day. Daylight saving changes inside the date range are handled per day.
With "timeEntryMode": "rateBasis" on the shift schedulable (plus its rateBasis key), each selected day also asks for a Rate Basis; the value's template fills the day's times and can lock them, and values can differ per day. The sample keeps "times". See Rate basis templates.
After upgrading (admin action required). The per day times always override whatever the bulk view form puts in the start and end fields. If your definition still flags the scheduled times range field for bulk create, the template shows a redundant, required time range that is then ignored. Remove it by setting blukCreateView to false on that entry in every Scheduling Context Provider and Component Configuration that drives the bulk creator:
{
"field": "b3s__Scheduled_Start_Time__c:b3s__Scheduled_End_Time__c",
"type": "field-time-range-selector",
"views": { "shiftView": true, "bulkEditView": false, "blukCreateView": false }
}
A form entry whose childObjectName matches the requirement schedulable's objectType (b3s__Certificate_Requirement__c) renders as a child record section rather than a single field. This is how a shift carries its own list of required credentials. Version 11 can derive requirements from the client, job, site and other configured criteria. Derived rows are read-only in the client UI; clients can add their own rows. Configure schedulables.requirement as described in Credential auto resolution, and use these gates on the related list:
Each manually entered requirement picks a credential type from the ticketTypes loader and an optional priority:
{
"labelOverride": "Required Credentials",
"type": "requirement",
"childObjectName": "b3s__Certificate_Requirement__c",
"parentFieldPath": "Id",
"childField": "b3s__Shift__c",
"canEdit": { "condition": { "allOrSome": "all", "selectors": [
{ "field": "b3s__Is_Auto_Derived__c", "operator": "notequals", "value": true }
] } },
"canDelete": { "condition": { "allOrSome": "all", "selectors": [
{ "field": "b3s__Is_Auto_Derived__c", "operator": "notequals", "value": true }
] } },
"canCreate": true,
"recordFormFields": [
{
"formField": "b3s__Ticket_Type__c",
"labelOverride": "Credential Type",
"type": "field-select",
"loader": "ticketTypes",
"optionLabelField": "Name",
"required": true
},
{ "formField": "b3s__Priority__c", "type": "field-select" }
]
}
A booking request describes an ongoing need for staff. The bookingRequest schedulable defines its pattern (patternTypeFieldPath), headcount (requiredStaffFieldPath), start and optional end dates, and fill status (filledFieldPath). Its recordFormFields include the same certificate requirement section as the shift form, linked through b3s__Booking_Request__c. Clients can choose a reusable pattern or build a one-off pattern in the wizard. Custom schedule
In the 12.11.0 sample, the booking date picker offers Today, This Week, Next Week, Next 4 Weeks and Next Month. Weeks start on Monday. Choosing a preset fills both dates. Clients can edit the dates or leave the end date open. On both shift and booking request forms, Job and Site each fill automatically when only one option is available. Record form field reference
Both the shift and bookingRequest schedulables declare a vmsFlagFieldPath of b3s__VMS__c. This boolean is the seam between the two views:
b3s__VMS__c unset and appear in the regular schedule.b3s__VMS__c = true on save. They are filtered out of the regular schedule and surface only inside the VMS Requests tab.A demand shift is a shift that requires more than one assignee: its demandRequiredStaffFieldPath (b3s__Required_Staff__c) says how many, and approving a proposed worker against it creates a new child shift linked back through demandParentFieldPath (b3s__Shift_Demand__c) rather than assigning the demand itself. Demand shifts and VMS booking requests are the two requisition shapes the VMS Requests tab works with.
If a definition omits vmsFlagFieldPath there is no split and every shift shows in the regular view.
The VMS view is a full screen mode toggle inside the app, not a separate app. It appears only when the configuration defines a proposal schedulable. The entry button carries a badge of pending proposals, and clicking it swaps the whole surface to the vendor management console. The client side implements the same workflow the master vendor admin panel does, but over the portal's guest safe loaders. The end to end object model, routing modes and lifecycle are documented in the VMS guide; this section covers the client tabs at a configuration level.
The VMS view can also be surfaced on its own, without the regular schedule. The packaged ClientPortal Visualforce page mounts the same client shift manager component but starts in the VMS view and hides the Back control, so a client contact lands directly in their vendor management console. A matching Client VMS portal block offers the same standalone surface inside 3B Portals; it renders the same component with the vms-only trait set to true.
VMS data is loaded per tab, on demand: each tab is a self-contained section that loads only the loaders it reads. The regular view's background sync never touches VMS loaders; instead, opening (or re clicking) a tab refreshes exactly that tab's loaders plus the badges. A Refresh button sits next to the tab bar.
The Broadcast Requirements permission enables client broadcasting only for accounts in Marketplace workflow mode. On the client Account, VMS Workflow Mode (b3s__VMS_Workflow_Mode__c) overrides the portal definition's default vmsWorkflowMode; a blank account setting inherits that default. MSP accounts are broadcast by the master vendor, even if the client's profile grants Broadcast Requirements.
The request wizard uses the chosen account's mode for its finish step, matching the Requests cards and broadcast handoff. An MSP request shows the master-vendor routing notice instead of offering Broadcast. If an MSP broadcast handoff still occurs, the portal explains why it is blocked rather than closing silently. Marketplace overrides continue to allow client broadcasting when the portal default is mediated, subject to permission and requisition approval.
Set the tab attribute to show one VMS tab on its own: no header, no regular schedule, no tab bar and no Back control. The account selector and Refresh button stay. Use it to put individual sections on separate 3B Portals or Experience Cloud pages.
<x-client-shift-manager tab="proposals"></x-client-shift-manager>
In the 3B Portals builder, pick the section in the Tab setting of the Client VMS or Client Shift Manager block (leave it blank for the full app). On the packaged Visualforce pages, pass it as a URL parameter: /apex/b3s__ClientShiftManager?sessionKey=...&tab=proposals or, for the VMS only page, /apex/b3s__ClientPortal?sessionKey=...&tab=proposals.
tab value |
Section |
|---|---|
home |
Home dashboard |
requests |
Requests |
proposals |
Proposals |
workers |
Workers |
schedule |
Schedule |
costs |
Costs |
timesheets |
Timesheets |
invoices |
Invoices |
settings |
Settings |
The embedded tab boots, authenticates and checks access exactly like the full app. When the contact's User Profile does not grant the tab, or the configuration lacks what the tab needs, the page shows "This section is not available for your access profile." A blank or missing tab renders the full app.
The root badges array feeds the count on the entry button and tabs. The shipped proposals badge counts b3s__Worker_Proposal__c rows awaiting the client, across both shift and booking request routes:
"badges": [
{
"name": "proposals",
"type": "count",
"objectType": "b3s__Worker_Proposal__c",
"selectionClause": [
"b3s__Vendor_Invite__r.b3s__Shift__r.b3s__Work_Job__r.b3s__Account__c IN :accountIds(b3s__Tab_Proposals__c) AND b3s__Status__c IN ('Proposed','Client Review')",
"b3s__Vendor_Invite__r.b3s__Booking_Request__r.b3s__Job__r.b3s__Account__c IN :accountIds(b3s__Tab_Proposals__c) AND b3s__Status__c IN ('Proposed','Client Review')"
]
}
]
The dashboard array drives widgets on the VMS home tab, which loads on its own without a loader. The sample ships count tiles (open shifts, today's scheduled shifts, open booking requests), a progress fill rate widget with a targetClause, and bar and pie breakdowns grouped by status and by site. Each widget is a type plus objectType, selectionClause and, for grouped widgets, a groupBy.
Each VMS loader is a Component Loader record with a name, an objectName, a filterRecordsBy clause set scoped by :accountIds (or :accountIds(<tab permission>) for tab specific data), and a fieldToLoad list. The loader query itself is always executed server side and never reaches the browser. See the loaders reference for the loader grammar.
| Tab | Shows | Loaders it refreshes |
|---|---|---|
| Requests | Demand shifts and VMS booking requests that have not ended, plus past requests that never filled (see Request list scopes), each with its sent invites, a proposed worker count, unread chat badges, and a broadcast modal to send to more vendors. | bookingRequests, vmsInvites, vmsProposals, vendors, vmsRequirements, vmsTickets, ticketTypes, patternTypes, vmsMessages, sharedWorkers. With lists.requests the requests and their invites, proposals, messages and requirements come one page at a time from the list; only vendors, clientVmsGroups, vmsTickets, ticketTypes, patternTypes and sharedWorkers load in full. |
| Proposals | Worker proposals awaiting the client, grouped under their requisition (the request's title fields plus a Manage button; a filled or closed request keeps its header, built from the proposal schedulable's requestTitle fields (invite-joined paths the vmsProposals loader must load), badged "Request no longer open", with no Manage button and only its Approved / Converted workers), with credential review, Approve and Reject. Search also matches vendor names and request details. |
vmsProposals, vmsTickets, vmsRequirements, vmsInvites, vmsMessages, bookingRequests |
| Workers | The client's active shared workers with their credentials (type, validity, approval status; expired ones flagged), plus the direct request flow to ask a vendor for a specific worker. The request modal shows the worker's credentials collapsed to a count summary (valid, pending approval, expired; expand for the full list), and lists only open requests whose account shares a VMS Sharing Group with the worker's vendor, with a search box over the request details. Each request shows the worker's credential fit as count badges (valid, missing, expiring or expired, pending) with a Details toggle listing every required credential and its status. Credentials come from the vmsTickets loader, which needs a clause for shared workers (see below). |
sharedWorkers, vmsInvites, vmsProposals, bookingRequests, vmsRequirements, vmsTickets, vendors, clientVmsGroups |
| Schedule | Filled VMS shifts for the picked period (default the current week), by day, with worker, job and site filters. Placements (b3s__Working_Pattern__c) show with Show placements. Filled requests leave the Requests tab once they end; their shifts stay here. |
Loaded through the scheduledShift and placement schedulables (see below). |
| Costs | Bill lines for the client's shifts in the picked period (default the current week), with worker, job and site filters. | Loaded through the cost schedulable rather than a Component Loader (see below). |
| Timesheets | The Timesheet Approval app, embedded. Governed contacts only. | Its own app definition and loaders (see below). |
| Invoices | Issued client invoices and credit notes, with lines, PDF download and backing sheet CSV download. Shown only when the definition declares the invoice schedulable. Profile needs Invoices Tab. |
invoices, invoiceLines (see below) |
Each tab shows only when the contact's profile grants its Tab_* permission on at least one account. The VMS view always opens on Home.
On a proposal card, expand a worker's credentials to see the fields configured in schedulables.ticket.reviewFields, or the validity dates if that list is omitted. Per-credential review actions appear only when approval is required for the ticket and the reviewer has permission. Reviewers use the proposal's own Approve Worker or Reject Worker action to decide on the worker. Configure proposal credential fields
The Requests tab is the heart of the console. Opening a request opens the Request Detail modal, laid out in tabs under its header (see Request detail tabs). Its Details tab shows coverage tiles (converted versus required staff, vendor pool size, invites sent, proposals), the request's fields and the proposed workers sorted by vendor, with a per worker credential review block that checks each proposed worker's b3s__Ticket__c credentials against the request's b3s__Certificate_Requirement__c rows. The Chats tab lists every invite thread with its unread count. An Available Workers tab (open requests only, needs Request Workers on the request's account) lists the shared workers in the request's vendor pool who have no active proposal on it and are fully compliant (every required credential Valid) and/or worked for the client before (an Approved or Converted proposal in the vmsProposals loader), each with its credential fit badges and a Request button that opens the direct request modal with this request preselected. The Requests tab therefore also refreshes the sharedWorkers loader. Approving a worker against a demand shift creates the child shift; approving one against a booking request creates the b3s__Working_Pattern__c placement. Approve and Reject run on the server in one transaction through b3s.VmsPortalService (reviewProposal), which stamps the proposal's Reviewed By Role as Client and its Reviewed Timestamp: the requisition is locked, fills are counted from the database, a full booking request is marked Filled, the open invites of vendors that placed nobody are released (the winning vendors' invites keep their status) and the other open proposals become Not Selected, and a retried approve returns the existing result. It needs Review Proposals on the requisition's account. Approval runs the server credential check first: required gaps refuse the approval when the client Account has VMS Block On Credentials or the definition sets root "blockOnMissingCredentials": true; otherwise the approval succeeds and a warning toast names the gaps (credentialWarnings in the response). The per worker review block and the Workers tab use the same rule: Missing, Expired, Expires before end (the request's end from the shift absoluteEndFieldPath or booking endFieldPath), Pending approval, with priorityFieldPath 2 to 5 marked recommended. See Credential check. See Apex and automation API reference.
The Request Detail modal (shift requests and booking requests) keeps its header (target and stage badges, Edit, Cancel Request, Broadcast) and Close button on every tab. It always opens on Details, and stays on the current tab when an action refreshes the data.
| Tab | Shown when | Content | Count badge |
|---|---|---|---|
| Details | Always | Coverage tiles, the request's title fields, Proposed Workers with the vendor filter |
None |
| Schedule | Booking requests only | Read-only calendar of the working pattern, Edit schedule for custom schedules (see Custom schedule) | None |
| Required Credentials | The request has certificate requirements | The required credential types | Number of requirements |
| Invited Vendors | Always | Invites with status, tier and chat, or "Not yet broadcast to any vendor" | Number of invites |
| Available Workers | Open request and Request Workers on the request's account | Shared workers to request in place | Number of workers listed |
| Chats | Always | Invite threads that have messages, with View chat | Unread messages across the threads |
A badge is hidden when its count is 0. The tab bar scrolls sideways on narrow screens. There is no configuration key for the tabs.
The vendor pool shown in the broadcast modal comes from the vendors loader, which resolves the client's tiered vendor pool through a packaged filter and groups the results by account:
{
"name": "vendors",
"objectName": "b3s__VMS_Sharing_Group_Assignment__c",
"apexFilter": "b3s.VmsVendorPoolFilter",
"filterRecordsBy": ["b3s__Role__c IN ('Vendor', 'Master Vendor')"],
"groupRecordsBy": "b3s__Account__c",
"fieldToLoad": [
"b3s__Account__c",
"b3s__Account__r.Name",
"b3s__Role__c",
"b3s__Tier__c",
"b3s__Sharing_Group__c",
"b3s__Sharing_Group__r.Name"
]
}
The vendor schedulable that reads these rows has objectType b3s__VMS_Sharing_Group_Assignment__c and the paths accountFieldPath, accountNameFieldPath, tierFieldPath, sharingGroupFieldPath and masterVendorFieldPath (b3s__Role__c), with masterVendorValue: "Master Vendor".
The modal only offers the vendors of the request's own account: accounts assigned Role Vendor or Master Vendor in a VMS Sharing Group where the request's account is assigned Role Client. That account is read from the requisitionAccountFieldPath of the shift or bookingRequest schedulable (b3s__Account__c). The request wizard stamps it on save with the account chosen on the Account step, or the contact's own account when there is no choice. Requests without a stamped account fall back to the first account in accountFieldPaths (job, then site). The pool is matched through the vendor schedulable's sharingGroupFieldPath and a clientVmsGroups loader that returns the client accounts' own group memberships:
{
"name": "clientVmsGroups",
"objectName": "b3s__VMS_Sharing_Group_Assignment__c",
"filterRecordsBy": ["b3s__Account__c IN :accountIds AND b3s__Role__c = 'Client'"],
"groupRecordsBy": "Id",
"fieldToLoad": ["b3s__Account__c", "b3s__Sharing_Group__c"]
}
Without that loader or sharingGroupFieldPath, the modal offers the whole pool across the header account selection. Add b3s__Account__c to the bookingRequests loader's fieldToLoad so booking requests carry the stamp.
The server enforces the same pool: a governed client's invite (from the broadcast modal or a direct worker request) is rejected unless the source has Role Client and the recipient has Role Vendor or Master Vendor in a shared group, even if the loader above is missing.
The master vendor (the account assigned Role Master Vendor) is not listed among the tiered vendors. When it shares a VMS Sharing Group with the request's account, the modal shows it on its own row as Include master vendor, switched on or off by the root key includeMasterVendorDefault. Its invite opens immediately (no tier window) and does not count toward the request's invite counter, so the stage only moves to Broadcasting for sub-vendor invites. The row needs masterVendorFieldPath: "b3s__Role__c" and masterVendorValue: "Master Vendor" on the vendor schedulable, and Role in the vendors loader. Older boolean selector definitions remain supported when masterVendorValue is omitted, but should be migrated to Role.
Each client account can carry its own VMS Workflow Mode (b3s__VMS_Workflow_Mode__c):
| Value | What the client can do |
|---|---|
| Marketplace | Broadcast from the Client Shift Manager and approve or reject Proposed and Client Review proposals. |
| MSP | Raise requests only. The master vendor broadcasts and screens. The client sees and reviews only proposals the master vendor sent to Client Review. |
| blank | The definition's vmsWorkflowMode (mediated = MSP, anything else = Marketplace). |
The Broadcast button and the Proposed proposals hide per request account. Both rules are also enforced server side: an MSP account's client invite insert is rejected with "Requests for this account are broadcast by the master vendor (MSP routing).", and reviewProposal refuses a proposal that is not in Client Review. A direct worker request on an MSP request works only when the vendor already holds an open invite (one the master vendor sent); otherwise the master vendor requests the worker from the VMS Command Center.
To hide Proposed rows from an MSP client, the shipped vmsProposals loader and the proposals badges add the account mode to each clause:
"b3s__Vendor_Invite__r.b3s__Shift__r.b3s__Work_Job__r.b3s__Account__c IN :accountIds AND (b3s__Status__c != 'Proposed' OR b3s__Vendor_Invite__r.b3s__Shift__r.b3s__Account__r.b3s__VMS_Workflow_Mode__c != 'MSP')"
The booking clauses use b3s__Vendor_Invite__r.b3s__Booking_Request__r.b3s__Account__r.b3s__VMS_Workflow_Mode__c. The clause reads the stamped request account. When the account mode is blank (it falls back to mediated), also add b3s__Status__c != 'Proposed' as described in the VMS guide.
The shipped shift and bookingRequest request forms also ask for an optional PO Number (b3s__PO_Number__c, field-text): a booking request's PO travels to the placement and every generated shift, a shift request's PO stays on the shift and its demand child shifts. The bookingRequests loader loads it.
Both forms offer an optional Reason Code (b3s__Reason_Code__c) and Cost Code (b3s__Cost_Center__c). The reasonCodes loader supplies names for the text field. The costCodes loader supplies Cost Center records labelled by b3s__Code__c. Both values appear on request cards and copy down like the PO Number.
The 12.11.0 example loads jobs and active codes for the contact's accounts and their direct parents, plus global reason codes. A school using a trust-owned job can select the trust's reason and cost codes. The sample rateGroups loader still uses the job's account, so a school-only contact in the UK education demo uses the card's default rate sheet. Salesforce validates a reason code against the request, job and site accounts when saving. Reason codes and cost codes
The shipped shift and bookingRequest request forms ask for Rate Basis (b3s__Rate_Basis__c, field-select, required, default Hourly), and both request cards show it. It travels to the child shift or placement on approval and selects the rate lines the pay and bill engine applies. Change the default to the account's convention (Half Day, Full Day) where that differs. The bookingRequests loader loads the field.
Rate basis templates. The shipped shift and booking request Rate Basis selects carry templateLoader: rateBasisTemplates (with templateJobField, templateAccountField and templateJobLoader: jobs), so they offer only the values the request's job (else account, else global templates) allows, and the server rejects any other value. On the shift form the Rate Basis select now sits above Scheduled Times, whose rateBasis key fills (and, for locked templates, fixes) the times when the value changes; the select moved there from the Details section. The rateBasisTemplates loader is scoped with :accountIds so a client sees only its own and global templates. With no active templates nothing changes. Remove the default when your jobs allow different values, or it is cleared when not allowed. See Rate basis templates.
The Workers tab applies the same pool to direct requests: a shared worker can only be requested for open requests whose account shares a VMS Sharing Group with the worker's vendor account (vendorAccountFieldPath of the sharedWorker schedulable). To show each shared worker's credentials, give the vmsTickets loader a clause for shared workers alongside its proposal clauses:
"b3s__Contact__c IN (SELECT b3s__Contact__c FROM b3s__Shared_Worker__c WHERE b3s__Client_Account__c IN :accountIds(b3s__Tab_Workers__c) AND b3s__Status__c = 'Active')"
Above the shared workers, the Workers tab lists every worker booked with the client in a period: who is coming today, next week, or who was in three weeks ago. A date control picks the period (day, week or month, this week by default). One card per worker shows the worker's photo, vendor, credentials, each placement overlapping the period (with a Booking confirmation button when the client PDF exists) and a collapsible list of the worker's confirmed shifts. A search box filters by worker or vendor name.
The list is driven by three optional schedulables in the Client Shift Manager definition, each loaded server-side for the period. The section only shows when bookedPlacement or bookedShift is configured; without them the tab is unchanged. Scope the clauses with :accountIds(b3s__Tab_Workers__c) so contacts only see bookings on accounts that grant the Workers tab.
| Schedulable | Object | Purpose | Keys read by the tab |
|---|---|---|---|
bookedPlacement |
b3s__Working_Pattern__c |
Placements overlapping the period. Use dateFilterMode: overlap and includeOpenEnded: true. |
contactFieldPath, workerNameFieldPath, vendorAccountNameFieldPath, confirmationDocumentFieldPath, title |
bookedShift |
b3s__Shift__c |
Confirmed shifts overlapping the period. | contactFieldPath, workerNameFieldPath, vendorAccountNameFieldPath, title |
bookedTicket |
b3s__Ticket__c |
Credentials of the workers booked in the period. No date path: the clauses use the window tokens. | the same field paths as the ticket schedulable |
Sample (from the Client Shift Manager configuration in the release samples):
"bookedShift": {
"objectType": "b3s__Shift__c",
"accountFieldPaths": ["b3s__Work_Job__r.b3s__Account__c", "b3s__Work_Site__r.b3s__Account__c"],
"startFieldPath": "b3s__Scheduled_Start_Time__c",
"endFieldPath": "b3s__Absolute_End_Time__c",
"absoluteStartFieldPath": "b3s__Absolute_Start_Time__c",
"dateFilterMode": "overlap",
"contactFieldPath": "b3s__Contact__c",
"workerNameFieldPath": "b3s__Contact__r.Name",
"vendorAccountNameFieldPath": "b3s__Contact__r.Account.Name",
"selectionClause": [
"(b3s__Work_Job__r.b3s__Account__c IN :accountIds(b3s__Tab_Workers__c) OR b3s__Work_Site__r.b3s__Account__c IN :accountIds(b3s__Tab_Workers__c)) AND b3s__Contact__c != null AND b3s__Status__c = 'Confirmed'"
],
"title": [
{ "label": "Shift", "fieldPath": "b3s__Scheduled_Start_Time__c:b3s__Scheduled_End_Time__c", "formatter": "startEndWithDate", "siteTimezoneFieldPath": "b3s__Work_Site__r.b3s__Timezone__c" },
{ "label": "Job", "fieldPath": "b3s__Work_Job__r.Name", "hideIfNull": true },
{ "label": "Site", "fieldPath": "b3s__Work_Site__r.Name", "hideIfNull": true }
]
},
"bookedPlacement": {
"objectType": "b3s__Working_Pattern__c",
"startFieldPath": "b3s__Start__c",
"endFieldPath": "b3s__End__c",
"isFieldPathDateType": true,
"dateFilterMode": "overlap",
"includeOpenEnded": true,
"contactFieldPath": "b3s__Contact__c",
"workerNameFieldPath": "b3s__Contact__r.Name",
"vendorAccountNameFieldPath": "b3s__Contact__r.Account.Name",
"confirmationDocumentFieldPath": "b3s__Client_Confirmation_Document_Id__c",
"selectionClause": [
"b3s__Contact__c != null AND (b3s__Job__r.b3s__Account__c IN :accountIds(b3s__Tab_Workers__c) OR b3s__Site__r.b3s__Account__c IN :accountIds(b3s__Tab_Workers__c))"
],
"title": [
{ "label": "Placement", "fieldPath": "b3s__Start__c:b3s__End__c", "formatter": "startEndDate" },
{ "label": "Job", "fieldPath": "b3s__Job__r.Name", "hideIfNull": true },
{ "label": "Site", "fieldPath": "b3s__Site__r.Name", "hideIfNull": true }
]
},
"bookedTicket": {
"objectType": "b3s__Ticket__c",
"contactFieldPath": "b3s__Contact__c",
"ticketTypeFieldPath": "b3s__Ticket_Type__c",
"ticketTypeNameFieldPath": "b3s__Ticket_Type__r.Name",
"approvalNotRequiredFieldPath": "b3s__Ticket_Type__r.b3s__Approval_Not_Required__c",
"validFromFieldPath": "b3s__Valid_From__c",
"validUntilFieldPath": "b3s__Valid_Until__c",
"approvalStatusFieldPath": "b3s__Approval_Status__c",
"selectionClause": [
"b3s__Contact__c IN (SELECT b3s__Contact__c FROM b3s__Working_Pattern__c WHERE (b3s__Job__r.b3s__Account__c IN :accountIds(b3s__Tab_Workers__c) OR b3s__Site__r.b3s__Account__c IN :accountIds(b3s__Tab_Workers__c)) AND b3s__Start__c <= :contextEndDate AND (b3s__End__c = null OR b3s__End__c >= :contextStartDate))",
"b3s__Contact__c IN (SELECT b3s__Contact__c FROM b3s__Shift__c WHERE (b3s__Work_Job__r.b3s__Account__c IN :accountIds(b3s__Tab_Workers__c) OR b3s__Work_Site__r.b3s__Account__c IN :accountIds(b3s__Tab_Workers__c)) AND b3s__Status__c = 'Confirmed' AND b3s__Absolute_Start_Time__c <= :contextEnd AND b3s__Absolute_End_Time__c >= :contextStart)"
]
}
Keep the bookedTicket clauses in step with the other two: a worker loaded by bookedPlacement or bookedShift but not by bookedTicket shows "No credentials on file". The shift clause decides what counts as booked: the sample takes every Confirmed shift with a worker (VMS fills and generated placement shifts are stamped Confirmed); add AND b3s__VMS__c = true to show VMS bookings only.
Photos and confirmations are read per booking and checked on the server against the booking's job or site account and the contact's Tab Workers accounts. See Worker photos and Booking confirmations.
The Requests bookingRequests loader loads every VMS booking request of the client's accounts that ended in the last 365 days or later. Filled requests are included on purpose so they stay on the Requests tab until they end. The 365 days is only an upper cap: how long past unfilled requests actually stay listed is set by staleRequestDays (see below).
"filterRecordsBy": [
"b3s__End__c >= LAST_N_DAYS:365 AND (b3s__Job__r.b3s__Account__c IN :accountIds OR b3s__Site__r.b3s__Account__c IN :accountIds) AND b3s__VMS__c = true"
]
Upgrade note. Older sample configurations filter on
b3s__Filled__c = false. Replace that condition with the end date bound above, otherwise filled booking requests still disappear from the Requests tab.
Shift requests (demand shifts) come from the shift schedulable's requestSelectionClause. The app runs it for the Requests, Proposals and Workers tabs over its own window (shifts starting from staleRequestDays ago up to two years ahead), so the list does not depend on the week shown in the regular schedule:
"shift": {
"requestSelectionClause": [
"(b3s__Work_Job__r.b3s__Account__c IN :accountIds OR b3s__Work_Site__r.b3s__Account__c IN :accountIds) AND b3s__VMS__c = true AND b3s__Contact__c = null AND b3s__Working_Pattern__c = null"
]
}
The sample lists only open shift requests: shifts with no Contact that are not linked to a Working Pattern (placement). A VMS shift with a Contact (a filled single shift, VMS Stage Complete) and shifts generated from a placement stay off the Requests, Proposals and Workers tabs; they show on the Schedule tab. Drop b3s__Contact__c = null to keep filled single shifts on the Requests tab as Filled. A demand shift (Required Staff above 1) never carries a Contact; its workers are on child shifts (b3s__Shift_Demand__c), which are not VMS flagged and never appear on the Requests tab.
Without requestSelectionClause the tab falls back to the shifts loaded for the regular schedule (the week or month last viewed), which was the behaviour before 11.3.0.
The Schedule tab answers "who is working, when, and on what" for the period picked in its date control. It opens on the current week (switch to a day or month in the control).
scheduledShift schedulable. The query runs server side for the picked period, anchored on absoluteStartFieldPath.b3s__Working_Pattern__c, the placement schedulable) are hidden by default. The Show placements checkbox lists the placements overlapping the period below the shifts. They load only while the checkbox is on.filters array. The shipped sample filters by worker, job and site.title.consolidation block (grouped by worker; shifts also total b3s__Absolute_Length__c as Hours), so the list opens on a condensed table: one row per worker, expanding to one line per record with the consolidation.title columns. Individual switches back to cards. Each viewer's choice is remembered in their browser per records type. Remove consolidation to get cards only. Contract: Consolidated approval view.scheduledShift is separate from shift because shift feeds the regular calendar. Its clause lists filled VMS work only:
"scheduledShift": {
"objectType": "b3s__Shift__c",
"accountFieldPaths": ["b3s__Work_Job__r.b3s__Account__c", "b3s__Work_Site__r.b3s__Account__c"],
"startFieldPath": "b3s__Scheduled_Start_Time__c",
"endFieldPath": "b3s__Scheduled_End_Time__c",
"absoluteStartFieldPath": "b3s__Absolute_Start_Time__c",
"absoluteEndFieldPath": "b3s__Absolute_End_Time__c",
"actualStartFieldPath": "b3s__Actual_Start_Time__c",
"actualEndFieldPath": "b3s__Actual_End_Time__c",
"selectionClause": [
"(b3s__Work_Job__r.b3s__Account__c IN :accountIds(b3s__Tab_Schedule__c) OR b3s__Work_Site__r.b3s__Account__c IN :accountIds(b3s__Tab_Schedule__c)) AND b3s__Contact__c != null AND (b3s__VMS__c = true OR (b3s__Shift_Demand__r.b3s__VMS__c = true AND b3s__Shift_Demand__r.b3s__Contact__c = null))"
],
"filters": [
{ "label": "Worker", "type": "reference", "value": { "labelField": "b3s__Contact__r.Name", "valueField": "b3s__Contact__c" } },
{ "label": "Job", "type": "reference", "value": { "labelField": "b3s__Work_Job__r.Name", "valueField": "b3s__Work_Job__c" } },
{ "label": "Site", "type": "reference", "value": { "labelField": "b3s__Work_Site__r.Name", "valueField": "b3s__Work_Site__c" } }
],
"title": [ "..." ],
"canEdit": false,
"canDelete": false
}
placement filters use the Working Pattern fields b3s__Contact__c, b3s__Job__c and b3s__Site__c.placements loader stays in the definition: the regular shift form reads it for its Working Pattern select. The Schedule tab no longer uses it, and the old scheduledShifts loader is gone.common.vmsSchedule.* translation keys.The same component runs the Vendor Portal Schedule tab, with the vendor's shift schedulable in place of scheduledShift.
The Requests tab has a scope select next to the search box. Each option shows its count, and the tab opens on All so filled requests stay in view until they end.
| Scope | Shows |
|---|---|
| Active | Requests that have not ended and are not Stale, Complete or Canceled |
| Stale | Requests in the Stale VMS Stage: proposals but nobody placed after the start, or the end passed without filling |
| Filled | Complete requests that have not ended |
| Canceled | Canceled requests that have not ended |
| All | Everything above |
End is the shift's absoluteEndFieldPath (else endFieldPath) and the booking request's endFieldPath. A booking request ending today stays until the end of the day.
Filled and canceled requests leave the tab once they end. Filled work stays visible on the Schedule tab.
Past unfilled requests stay under Stale for staleRequestDays days after they end (root definition key, default 90, 0 hides them as soon as they end). Above 365, also raise the LAST_N_DAYS bound of the bookingRequests loader.
"staleRequestDays": 90
When there are Stale requests and another scope is selected, an amber N stale requests button appears next to the toolbar and switches the list to Stale.
Complete requests (placements cover them) show no Edit button and cannot be edited or deleted by the client, even with Edit Submitted permissions.
Ended requests cannot be broadcast or canceled, and are not offered in the Workers tab's direct request modal.
Labels use the translation keys vms.requests.scope.<all|active|stale|filled|canceled|past> (with a %{count} placeholder) and vms.requests.staleNotice.
When the definition declares the root key lists.requests, the server sorts, scopes, searches, counts and pages the list (DataLoadingService listRecords), and the Requests tab only loads the page on screen. Without the key the tab behaves as described above, so an org on an older Component Configuration keeps working unchanged. The contract is in Data loaders, server-paged lists.
What changes for the user:
b3s__VMS_Action_Priority__c), then by soonest start. Requests awaiting requisition approval come first, then requests with proposals, then stale ones. A new request appears on page 1, not on the last page. The mapping is in VMS request stage.searchFieldPaths: in the sample, request name, job, site, PO number and reason code. Vendor names are not searched (they are not fields of the request).The shipped scopes:
| Scope | Shift clause (sample) | Booking request clause (sample) |
|---|---|---|
all |
Stage New, Broadcasting or Proposals; Stale ending in the last 90 days; Complete or Canceled not yet ended | Same, on b3s__End__c (blank end counts as not ended) |
active |
Stage New, Broadcasting or Proposals | Same |
stale |
Stage Stale, b3s__Absolute_End_Time__c >= :now-90d |
Stage Stale, end blank or >= LAST_N_DAYS:90 |
filled |
Stage Complete, not yet ended (>= :now) |
Stage Complete, end blank or >= TODAY |
canceled |
Stage Canceled, not yet ended | Stage Canceled, end blank or >= TODAY |
past |
b3s__Absolute_End_Time__c < :now, within the picked period (:contextStart / :contextEnd) |
b3s__End__c < TODAY, within the period (:contextStartDate / :contextEndDate) |
Configuration notes:
The two sources read the requestSelectionClause of the shift and bookingRequest schedulables as their base clause. Scope them by account there:
"bookingRequest": {
"requestSelectionClause": ["(b3s__Job__r.b3s__Account__c IN :accountIds OR b3s__Site__r.b3s__Account__c IN :accountIds) AND b3s__VMS__c = true"]
}
Record fields come from the schedulables' field paths, not the bookingRequests loader. Add any path a card or console shows to the schedulable.
The 90 days of the Stale clauses replace staleRequestDays in list mode. Change both clauses (all and stale) to change it.
The related loaders vmsInvites, vmsProposals, vmsMessages and vmsRequirements are keyed on the listed requests' Ids (through b3s__Shift__c / b3s__Booking_Request__c, or b3s__Vendor_Invite__r. for proposals and messages). Their own clauses still apply.
The direct request modal opened from the request console only offers the requests loaded on the current page.
Translation keys: vms.requests.scope.<scope name>, and vms.requests.shift / vms.requests.booking for the type filter (vms.requests.source.<source name> for other sources).
Costs lists the Bill type staging lines for the client's shifts in the picked period. It opens on the current week, like the Schedule tab.
totalFieldPath), total hours (lines whose unitFieldPath is Hours, summing quantityFieldPath) and line count. The tiles total the lines the filters show.cost schedulable's title, sorted by startFieldPath, with filter chips from its filters array.common.payBillLines.* translation keys (total.cost for the first tile).Unlike the other tabs, Costs has no Component Loader. Its bill lines load directly through the cost schedulable, whose selectionClause restricts the client to Bill type staging lines for their own shifts:
"cost": {
"objectType": "b3s__Pay_Bill_Staging__c",
"accountFieldPaths": ["b3s__Shift__r.b3s__Work_Job__r.b3s__Account__c", "b3s__Shift__r.b3s__Work_Site__r.b3s__Account__c"],
"startFieldPath": "b3s__Shift__r.b3s__Scheduled_Start_Time__c",
"endFieldPath": "b3s__Shift__r.b3s__Scheduled_End_Time__c",
"dateFilterMode": "overlap",
"quantityFieldPath": "b3s__Quantity__c",
"unitFieldPath": "b3s__Unit__c",
"totalFieldPath": "b3s__Total__c",
"selectionClause": [
"b3s__Type__c = 'Bill' AND (b3s__Shift__r.b3s__Work_Job__r.b3s__Account__c IN :accountIds(b3s__Tab_Costs__c) OR b3s__Shift__r.b3s__Work_Site__r.b3s__Account__c IN :accountIds(b3s__Tab_Costs__c))"
],
"filters": [
{ "label": "Worker", "type": "reference", "value": { "labelField": "b3s__Shift__r.b3s__Contact__r.Name", "valueField": "b3s__Shift__r.b3s__Contact__c" } },
{ "label": "Job", "type": "reference", "value": { "labelField": "b3s__Shift__r.b3s__Work_Job__r.Name", "valueField": "b3s__Shift__r.b3s__Work_Job__c" } },
{ "label": "Site", "type": "reference", "value": { "labelField": "b3s__Shift__r.b3s__Work_Site__r.Name", "valueField": "b3s__Shift__r.b3s__Work_Site__c" } }
],
"title": [ "..." ],
"canEdit": false,
"canDelete": false
}
The same component runs the Vendor Portal Revenue tab, with the revenue schedulable.
These staging lines are produced by the pay and bill engine; how rates and rules generate them is covered in the pay and bill engine reference.
The Timesheets tab embeds the Timesheet Approval app inside the VMS view, so a client approves timesheets without leaving the console. It is shown to governed contacts whose profile grants Timesheets Tab.
:accountIds(b3s__Tab_Timesheets__c) as the sample does.A governed contact with more than one account in scope sees an Accounts multi-select next to the tab bar. It defaults to all accounts. Picking accounts narrows the home dashboard, the badges, the open demand shifts and every tab, including the embedded Timesheets app. The selection travels with each data request; the server only ever keeps accounts already in scope, so it can narrow but never widen what the contact sees.
New Shift Request and New Booking Request open a step by step wizard. A booking request is ordered in one of two ways, chosen on the Pattern step, so the wizard has three order modes:
| Order mode | Pattern step choice | Steps |
|---|---|---|
| Shift request | none | Account, Details, Credentials, Broadcast (or Finish) |
| Booking request with a template | a reusable Working Pattern Type from the list | Pattern, Account, Details, Preview, Credentials, Broadcast (or Finish) |
| Booking request with a custom schedule | Custom schedule | Pattern, Account, Details, Schedule, Preview, Credentials, Broadcast (or Finish) |
Steps in bold appear only when they apply (see below). Back is available on every step except the first and the final Broadcast or Finish step. The wizard widens on the Schedule and Preview steps.
$accountId. The shipped Job and Site selects use showOptionIf to offer only options of that account:"showOptionIf": {
"condition": {
"allOrSome": "some",
"selectors": [
{ "field": "$accountId", "operator": "isnull", "value": true },
{ "field": "$accountId", "operator": "equals", "targetField": "b3s__Account__c" }
]
}
}
b3s__Account__c must be in the jobs and sites loaders' fieldToLoad. $accountId is never queried or saved.
bookingRequest (booking flow) or shift (shift flow) schedulable's recordFormFields, including configured separators (isSeparator) and spacers (isEmptyBlock), without child sections and, for bookings, without the pattern field. Next validates and saves it. Going back to Details shows the saved record, re-read from the server, and Next then saves only the changed fields.patternTypes loader and, above them, a Custom schedule choice ("Choose the working days and hours for this request only"). Custom schedule is offered even when there are no pattern types yet. The choice is locked once the Details step has saved the request.A custom schedule describes the working days of one booking request only, for example three full days and one half day a week. It is stored as a Working Pattern Type flagged One Off (b3s__One_Off__c), which belongs to that request and is never offered as a template.
$customSchedule to true on the details form record. It is never queried or saved. The shipped Rate Basis select uses it in its showIf to hide itself, so the request level Rate Basis stays blank (a hidden field applies no default and no required). The pattern field is never on the wizard's details form. Next saves the request without a pattern type.bookingRequest.timeEntryMode is rateBasis) and its start and end times. The Rate Basis options are the values the request's job (else account, else global) Rate Basis Templates allow, or every picklist value when no template applies; picking a value fills the day's times from the template, and a template with Lock Times makes them read-only. A value or time entered on one day is copied to the other selected days that have none, and a day selected later inherits the last values. Add Week adds a rotation week: with two weeks, week 1 applies to the first calendar week, week 2 to the second, week 1 again to the third and so on. An end time at or before the start is an overnight shift ending the next day. Times are site wall clock times.rateBasis mode), refuses an empty schedule ("Select at least one working day") and saves it on the server through b3s.VmsPortalService saveBookingPattern. Every Next replaces the saved days. Back keeps every value entered, so you can step back to Details or Schedule, change something and continue.Without bookingRequest.timeEntryMode: "rateBasis" the Schedule step asks for times only, and the generated shifts get no Rate Basis from the schedule.
Edit window. The custom schedule can change only while the request's VMS Stage is New (the request has not been broadcast) and no placement exists for it. After that the server refuses the save with "The schedule can no longer change: the request was submitted or a worker is already placed." This applies whatever Edit Submitted Booking Requests allows for the other request fields, because vendors may already be quoting the schedule. The Requests tab edit form never shows the Pattern Type field of a request with a one-off type and hides its Rate Basis (see Pattern Type field on the edit form).
Edit schedule. After the wizard closes, the schedule is changed from the Request Detail modal (View on a request card). Its Schedule tab shows an Edit schedule button when all of these hold:
oneOffPatternFieldPath reads true) or no pattern type at all (patternTypeFieldPath is blank).Edit schedule replaces the calendar with the same week cards as the wizard's Schedule step, filled with the saved days. Save schedule runs the same checks as the wizard (times and Rate Basis on every selected day, at least one day) and calls saveBookingPattern; Cancel discards the changes. After a save the calendar reloads and the request list refreshes. Switching to another tab while editing keeps the entered days: they are still there on return to the Schedule tab, until Save schedule, Cancel or closing the modal.
The button does not test the stage New rule. A client holding Edit Submitted Booking Requests still sees it on a broadcast request, and the server refuses the save with the message above, shown as an error. A saved Rate Basis value that the job's Rate Basis Templates no longer allow stays selected on its day when the editor opens and is saved again unless the client picks another value; the server then validates it like any other value.
How the shifts get their Rate Basis. On approval of a proposal the placement copies the request's Rate Basis, which is blank for a custom schedule. Placement shift generation then takes each shift's Rate Basis from the placement, else the booking request, else the pattern day, so the per day values reach the generated shifts. See Rate basis templates.
Warning for integrators: never hide the booking request Pattern Type field (
b3s__Working_Pattern_Type__c) withshowIf. A form resets every hidden field to its default when it saves, so a hidden Pattern Type is saved as blank: the request loses its pattern lookup and its custom schedule is detached.
The app removes the field from the edit form itself. When the definition key schedulables.bookingRequest.oneOffPatternFieldPath (sample value b3s__Working_Pattern_Type__r.b3s__One_Off__c) reads true on the request, the field named by patternTypeFieldPath is dropped from recordFormFields before the form opens, so it is neither shown nor saved. Requests with a reusable pattern type, and requests with no pattern type, keep the field. Without the key the field always shows, and editing a custom request hits a required select whose loader no longer lists its type.
The Rate Basis field is different: it keeps its showIf, because a blank request level Rate Basis is exactly what a custom schedule needs.
Both booking request modes show a read-only Preview before Credentials: a month calendar of the shifts the request's pattern creates, from the booking request's start date ("The shifts this request will create, from its start date."). It reads the saved pattern through getBookingPattern and is reloaded every time you enter the step. Clicking a shift does nothing.
siteTimezoneFieldPath on the shift schedulable; without it the app timezone is used.shift schedulable shiftBulkViewTitle. The shipped sample adds a Rate Basis entry with hideIfNull, so each previewed shift shows its day's value.| Key | Where | Purpose |
|---|---|---|
timeEntryMode |
schedulables.bookingRequest |
"rateBasis" asks for a Rate Basis per selected day on the Schedule step. Default "times" (times only). |
rateBasis |
schedulables.bookingRequest |
{ field, loader, jobField, accountField, jobLoader }: the Rate Basis field, the Rate Basis Template loader and how the request's job and account are found. Same meaning as the Rate Basis select's templateLoader, templateJobField, templateAccountField and templateJobLoader. Required in rateBasis mode. |
startFieldPath / endFieldPath |
schedulables.bookingRequest |
The booking dates the Preview runs from and to (b3s__Start__c, b3s__End__c). |
startFieldPath, endFieldPath, siteTimezoneFieldPath, rateBasis.field, shiftBulkViewTitle |
schedulables.shift |
Shape and title of the previewed shifts. |
patternTypeFieldPath |
schedulables.bookingRequest |
The pattern type lookup on the request (b3s__Working_Pattern_Type__c). Blank on a request = Edit schedule is offered. |
oneOffPatternFieldPath |
schedulables.bookingRequest |
Path from the request to its pattern type's One Off flag (b3s__Working_Pattern_Type__r.b3s__One_Off__c). true = the request has a custom schedule: the edit form drops the Pattern Type field and Edit schedule is offered. The path must be loaded by the bookingRequests loader. |
$customSchedule |
runtime key on the details form record | true while a custom schedule is being ordered. Use it in showIf conditions. Never saved. |
Sample bookingRequest keys:
"patternTypeFieldPath": "b3s__Working_Pattern_Type__c",
"oneOffPatternFieldPath": "b3s__Working_Pattern_Type__r.b3s__One_Off__c",
"timeEntryMode": "rateBasis",
"rateBasis": {
"field": "b3s__Rate_Basis__c",
"loader": "rateBasisTemplates",
"jobField": "b3s__Job__c",
"accountField": ["b3s__Job__r.b3s__Account__c", "b3s__Account__c", "b3s__Site__r.b3s__Account__c"],
"jobLoader": "jobs"
}
Full Day and Half Day hours without typing. The day times come from Rate Basis Templates with times. Create a template per value with Start Time and End Time (for example Full Day 07:30 to 14:00 and Half Day 07:30 to 11:00), at job, account or global level, and tick Lock Times when the client must not change the hours. Add an Hourly template with no times if Hourly must stay available: once a level has templates, only its values are offered. See Rate basis templates.
A package upgrade adds the field, the server actions and the app code, but never changes your own Component Configuration records. To turn custom schedules on in an existing org, apply these changes to your Client Shift Manager configuration (and the Vendor Portal one for step 7) by hand, using the sample Client Shift Manager configuration in the Version 12 release samples (b3s-component-configuration-wfm-client-shift-manager.md-meta.xml) as the reference.
Hide one-off types from the template list. In b3s__Loaders__c, set the patternTypes loader filter to b3s__One_Off__c = false (the old sample used Id != null). Without this, every custom schedule appears as a template on the Pattern step.
Load the flag on requests. Add b3s__Working_Pattern_Type__r.b3s__One_Off__c to the bookingRequests loader's fieldToLoad.
Hide the request level Rate Basis for custom schedules. Add this showIf to the Rate Basis field of schedulables.bookingRequest.recordFormFields:
"showIf": {
"condition": {
"allOrSome": "all",
"selectors": [
{ "field": "$customSchedule", "operator": "notEquals", "value": true },
{ "field": "b3s__Working_Pattern_Type__r.b3s__One_Off__c", "operator": "notEquals", "value": true }
]
}
}
If the request level Rate Basis is saved, it overrides every per day value.
Name the one-off flag. Add "oneOffPatternFieldPath": "b3s__Working_Pattern_Type__r.b3s__One_Off__c" to schedulables.bookingRequest, next to patternTypeFieldPath. It removes the Pattern Type field from the edit form of a custom request and turns on Edit schedule. Do not add a showIf to the b3s__Working_Pattern_Type__c field, and remove one added from an earlier version of these steps: a hidden field is saved blank, which detaches the schedule (see Pattern Type field on the edit form).
Per day Rate Basis. Add timeEntryMode and rateBasis to schedulables.bookingRequest (sample above). The rateBasisTemplates and jobs loaders must exist; the sample already ships them.
Rate Basis in the preview titles (optional). Add { "label": "Rate Basis", "fieldPath": "b3s__Rate_Basis__c", "hideIfNull": true } to schedulables.shift.shiftBulkViewTitle.
Vendor Portal. Add the keys described in Vendor Portal: View schedule.
Field access for licensed portal users. Licensed Experience Cloud users run loaders as themselves, so they need Read on Working Pattern Type One Off. The packaged permission sets WFM Admin (read and edit), WFM VMS Client User and WFM VMS Vendor User (read) already grant it. Add the same read access to any custom permission set or profile your portal users hold instead; without it the patternTypes loader filter, the Rate Basis showIf and oneOffPatternFieldPath fail.
Rate Basis Templates. Set up timed templates for Full Day and Half Day as described above so clients do not have to type the hours.
startFieldPath / endFieldPath. Edit schedule changes a custom schedule there; it is shown to clients who may edit the request, and the server accepts the save only while the VMS Stage is New and no placement exists (see Custom schedule). A request with a reusable pattern type has no Edit schedule: change its pattern type on the edit form.A left sidebar of settings areas, shown with Tab_Settings__c when the definition declares the user schedulable (and its users loader). The Users area lists the client's portal users (contacts with VMS Role Client) and, with Can Provision Users, adds users (with an Account Membership) and deactivates or reactivates them. See VMS user provisioning.
Two more areas, Reason Codes and Cost Codes, appear when the definition declares the reasonCode / costCode schedulable and the contact holds Manage Booking Codes on an account: the client adds, edits and deactivates its own account's codes (never global ones, never deletes). See Reason codes and cost codes.
The client invoices issued to the accounts whose profile grants Invoices Tab (ungoverned contacts: their own account; b3s__Kind__c = 'Client') in status Issued or Reverted; drafts never appear. Summary tiles show the net invoiced (the sum of every listed invoice and credit note, Reverted ones included, per currency) and the document count; each row shows the number, period, issue and due dates, net, tax, gross and status, and credit notes name the invoice they credit. Expanding a row loads its lines and Download PDF downloads the document through the access-checked InvoicePortalService.getInvoicePdf endpoint, which re-checks the status, the kind and that the invoice is billed to the portal user's account. When the invoice configuration defines a backing sheet, Backing sheet (CSV) downloads the shift-level CSV saved with the PDF through InvoicePortalService.getBackingSheet, under the same checks; the button needs backingSheetFieldPath (b3s__Backing_Sheet_Document_Id__c) on the invoice schedulable and that field in the invoices loader. The tab is read-only and loads when opened.
It is fed by the invoice and invoiceLine schedulables (field paths and the loader names) and two loaders in the configuration's b3s__Loaders__c:
{
"name": "invoices",
"objectName": "b3s__Invoice__c",
"filterRecordsBy": [
"b3s__Account__c IN :accountIds(b3s__Tab_Invoices__c) AND b3s__Kind__c = 'Client' AND b3s__Status__c IN ('Issued', 'Reverted')"
],
"groupRecordsBy": "Id",
"fieldToLoad": [
"Name", "b3s__Invoice_Number__c", "b3s__Kind__c", "b3s__Document_Type__c", "b3s__Status__c",
"b3s__Credited_Invoice__r.b3s__Invoice_Number__c", "b3s__Issue_Date__c", "b3s__Due_Date__c",
"b3s__Period_Start__c", "b3s__Period_End__c", "b3s__Net__c", "b3s__Tax__c", "b3s__Gross__c",
"b3s__Currency__c", "b3s__Pdf_Document_Id__c"
]
}
The invoiceLines loader filters b3s__Invoice__c = :contextId plus the same account, kind and status conditions on the parent invoice; the tab points :contextId at the invoice being expanded. Full schedulable samples, numbering and corrections: Invoicing.
b3s__Type__c = "Client Shift Manager") and its b3s__JSON__c app definition.recordFormFields (including the blukCreateView flag for bulk creation), the shift time and total hours paths, the record card title blocks, the filters, the permission gate conditions, the certificate requirement child sections, and every VMS gate, most importantly whether a proposal schedulable exists and the cost schedulable that feeds the Costs tab.vmsWorkflowMode (autonomous or mediated), overridden per client by the account's VMS Workflow Mode, and the master vendor toggle default via includeMasterVendorDefault.:accountIds tokens in clauses and accountFieldPaths per schedulable. See VMS access profiles and account memberships.firstDay, syncTimeout, timezonePreference and is24Hour.contact-id, theme-type, hide-theme-switch, hide-current-user and vms-only (set to true on the Client VMS block to start directly in the VMS view with no Back control).