This guide is written for Salesforce administrators and system integrators deploying the WFM package into a customer org and configuring the VMS from scratch. It applies to the managed package from version 10.3 onward, namespace b3s. Master-vendor worker requests and the separate Requests tab require version 11.1.0 or later. The package ships default layouts, Lightning pages, apps and permission sets, but this guide assumes you are building the configuration up deliberately so you understand every moving part.
Related reading: the Pay and bill engine rates the shifts and placements the VMS produces. The Vendor Portal and Client Shift Manager app articles cover those two surfaces in configuration detail.
The VMS is a second tier staffing workflow layered on top of the core WFM scheduling engine. It lets an organisation that cannot fill its own shifts distribute those requirements to a network of sub-vendors (staffing agencies) and place the workers they propose, all inside Salesforce, with the sub-vendors working through a lightweight guest portal without Salesforce logins.
There are three roles:
| Role | Who they are | Where they work |
|---|---|---|
| Client | The end organisation that needs staff, for example a school, hospital or care group. | Client Shift Manager (guest portal) |
| Master vendor | Your customer, the org that owns the Salesforce instance and the vendor relationships. Its Account has Is Master Vendor (b3s__Is_Master_Vendor__c) ticked, one account per org. |
Native Salesforce (record pages, the 3B VMS app) |
| Sub-vendor | A staffing agency the master vendor works with. | Vendor Portal (guest portal) |
The core idea: a requisition (an unfilled need) is broadcast to a pool of sub-vendors as invites. Sub-vendors respond by proposing workers. Whoever is reviewing (the client or the master vendor, depending on the routing mode) checks the worker's credentials and approves, which turns the proposal into a real, scheduled placement.
A requisition is always an existing WFM record flagged for VMS (b3s__VMS__c = true). There are two shapes:
b3s__Shift__c with no assigned worker and a b3s__Required_Staff__c count. One off cover, for example "I need 3 nurses on Saturday night." Approving a proposal creates a child shift under the demand for the placed worker. A VMS shift with a blank b3s__Required_Staff__c is a single shift: approval assigns the worker to that shift itself, with no child shift.b3s__Booking_Request__c. A longer, repeating placement described by a Working Pattern Type (for example week 1 mornings 07:00 to 14:00, week 2 afternoons 14:00 to 21:00). Approving a proposal creates a Working Pattern (b3s__Working_Pattern__c), the placement, for the worker. Its individual shifts are generated by the Generate Shifts flow on the placement, or automatically on approval when the WFM setting Auto-Generate Placement Shifts is on (see Placement shift generation).Why two objects? A Working Pattern's link to its worker (
Contact__c) is a Master-Detail relationship shipped in the managed package, so a pattern can never exist without a worker, there is no such thing as an open pattern. The Booking Request is therefore the open requisition, and the Working Pattern is the placement created on approval. Demand shifts need no such split because a shift's worker lookup is already optional.
A requisition is filled when the number of placements reaches b3s__Required_Staff__c (blank counts as 1). At that point the remaining open invites are automatically Released and every other open proposal on it becomes Not Selected.
All objects are namespaced b3s__ in the installed org.
| Object | Purpose |
|---|---|
VMS_Sharing_Group__c |
A named container. No configuration beyond its name, it is purely a join anchor. |
VMS_Sharing_Group_Assignment__c |
Junction row: links an Account into a sharing group, with Role__c (Client, Vendor or Master Vendor) and optional Tier__c (the default broadcast wave for that vendor, blank means tier 1). |
Each assignment has a Role (b3s__Role__c): Client, Vendor or Master Vendor. Eligibility is evaluated from the roles on assignments in the shared group.
| Action | Source assignment role | Eligible recipient role in the same group |
|---|---|---|
| Invite vendors to a requisition | Client | Vendor or Master Vendor |
| Share a vendor's worker | Vendor | Client or Master Vendor |
| Share a master vendor's worker | Master Vendor | Client |
The booking's stamped Account, or its job/site account on older requests, must have a Client assignment in the shared group. Other Client accounts are never invitation candidates. A Vendor appearing in several qualifying groups gets its lowest tier. Master Vendor remains a separate Include master vendor option and opens immediately. The Console refuses an ambiguous broadcast if more than one Master Vendor is configured for the request's pool.
Worker sharing uses the worker's Account, including when a portal user manages several accounts. The portal and Console apply the same role rules when listing recipients and saving new shares. Portal retargeting and reactivation also recheck eligibility; existing shares can still be revoked after group configuration changes. Account Type and Record Type are not used.
b3s.VmsVendorPoolFilter, restricted to Vendor/Master Vendor assignments. Its master-vendor selector reads the assignment Role.clients loader to b3s.VmsWorkerSharePoolFilter, add the vendorVmsGroups loader, and configure the role/group field paths described in the Vendor Portal guide. The old vendor filter is now invitation-only.| Object | What it represents | Key fields |
|---|---|---|
Vendor_Invite__c |
One broadcast of one requisition to one vendor. | Vendor_Account__c, exactly one of Shift__c or Booking_Request__c, Status__c (New, Seen, Accepted, Rejected, Queried, terminal Released or Canceled; Expired is shown by the Vendor Portal once Expires__c passes but is not written to the record), Tier__c, Available_From__c (tier gate), Expires__c. Internal proposals hang off the master vendor's own invite (Vendor_Account__c = the master vendor account). |
Worker_Proposal__c |
A worker a vendor is putting forward. | Master-Detail to the invite. Contact__c (the worker), Proposed_Rate__c, Status__c (Proposed, Client Review, Rejected, Withdrawn, Converted (written on approval, once the shift or placement exists), Not Selected (set automatically when another worker fills the requisition), plus Requested for direct worker requests). Approved stays in the picklist for custom automation but the package never writes it; it counts as placed, like Converted. Requested_By__c (Client or Master Vendor) and Requested_By_Contact__c stamp who made a direct request; both are blank on vendor initiated proposals. Reviewed_By_Role__c (Client or Master Vendor) and Reviewed_Timestamp__c record who approved or rejected it. |
Shared_Worker__c |
A vendor granting a client permanent visibility of a worker. | Contact__c, Client_Account__c, Status__c (Active or Revoked). Enables the client, and the master vendor from the VMS Command Center, to directly request a specific worker. |
VMS_Message__c |
Chat, one thread per invite. | Body__c, Author_Contact__c, Author_Role__c (Client, Vendor or Internal). |
Certificate_Requirement__c |
A credential a requisition demands. | Lookup to Ticket_Type__c plus the requisition. Captured on the request form. Priority__c blank or 1 = required, 2 to 5 = recommended (never blocks approval). |
Ticket__c |
A credential a worker holds. | Master-Detail to Contact plus Ticket_Type__c, Valid_From__c and Valid_Until__c, Approval_Status__c (including Revoked for a credential withdrawn after approval). File evidence attaches to the record. |
Onboarding objects (guidance for vendors, not job requirements): Onboarding_Template__c with child Onboarding_Template_Item__c (a Ticket Type, Required or Recommended) and Onboarding_Template_Assignment__c (the vendor accounts that may use it), and Worker_Onboarding__c (a template a worker carries). Onboarding status is computed from the worker's Tickets on read. See Worker onboarding templates.
Three of these objects enforce their own integrity through Apex triggers you do not need to configure, but should know exist:
Response_Before_Available) blocks any response to an invite whose tier window has not yet opened, on every data path including the guest portal.The workflow runs in one of two modes per client account. Set VMS Workflow Mode (b3s__VMS_Workflow_Mode__c) on the client Account; blank uses the Client Shift Manager app definition's top level JSON key vmsWorkflowMode (b3s__Component_Configuration.Client_Shift_Manager):
autonomous, the default): Client to sub-vendor to client. The client broadcasts requisitions directly from the Client Shift Manager and reviews every proposal itself. The master vendor is not in the loop.mediated): Client to master vendor to sub-vendor to master vendor to client. The client only creates requisitions. The master vendor broadcasts and screens proposals in the native admin panel, forwarding good ones ("Send to Client"), and the client makes the final approval.The server enforces MSP: a client invite insert for an MSP account is rejected, and the client can approve or reject only proposals in Client Review. The shipped vmsProposals loader and proposals badges drop Proposed rows for accounts whose mode is MSP, so unscreened proposals never reach the client's browser.
Integrator note when the default is mediated: the loader clause reads the account's own mode, so an account left blank under a
mediateddefinition still loads Proposed rows (the server still refuses to review them). Add ab3s__Status__c != 'Proposed'clause to thevmsProposalsloader and drop'Proposed'from theproposalsbadge in that case.
Client review required. Tick VMS Client Review Required (b3s__VMS_Client_Review_Required__c) on a client Account whose contract says the client approves every worker. The master vendor then cannot approve in the panel ("This client reviews proposals; use Send to Client"); it sends proposals to Client Review or rejects them.
The master vendor in a broadcast. The master vendor is invited only on purpose: the Client Shift Manager broadcast modal and the panel show it as a separate Include master vendor toggle outside the tier list (modal default: definition key includeMasterVendorDefault). It must share a VMS Sharing Group with the client to be offered. Its invites do not count as sub-vendor invites on the request stage.
Vendors can be given staggered first refusal windows so your best agencies get first crack at a requisition.
Tier__c on each VMS_Sharing_Group_Assignment__c (1 is first chance, 2 is second wave). Blank means tier 1.tierWindowOptions (minutes, default [30, 60, 120, 240, 480, 1440]) and each picker starts on 60 min. All invites are created at once. Available_From__c (the invite start) is the broadcast time plus the windows of every lower tier that received a new invite, so a tier with nobody selected does not hold up the next one. The lowest tier you invite opens immediately (blank Available_From__c). Earlier tiers keep access when later tiers open. Expires__c is the end date and applies to every invite. "Open to everyone" is simply the last tier. The master vendor's vmsBroadcastPanel still uses a single delay between tiers.No scheduled jobs or platform events are involved, the timestamps do the work. Tiers are always resolved server side from the sharing assignments.
| Component | Lives on | What it does |
|---|---|---|
vmsBroadcastPanel |
b3s__Shift__c and b3s__Booking_Request__c record pages |
The command center for a requisition. Header stat tiles (coverage, vendor pool, invites seen and accepted, proposals pending and placed), required credential chips, and five tabs: Invite Vendors (searchable pool with tier filter, already invited vendors disabled), Invited Vendors (status, timestamps, window, expiry and who created each invite), Worker Proposals (review, credential check, Approve, Send to Client for Proposed rows, Reject, admins can also create a proposal; Approve is hidden when the client account requires client review), Requested Workers (request any worker a sub-vendor has shared with the requisition's client, plus every open direct request labelled Client request or Master vendor request with the requester and the invite chat; a master vendor request the sub-vendor confirms comes back under Worker Proposals as Proposed), and Placements (converted proposals with links to the resulting shift or pattern). |
workerOnboardingStatus |
Contact record page (VMS tab) | A worker's onboarding progress against their templates: per credential status, Check or Assign a template, Approve, Reject, Query or Revoke credentials, Add credential. See Worker onboarding templates. |
workerProposalCredentials |
b3s__Worker_Proposal__c record page |
The credentials attached to a proposal. Use Manage to change which tickets are attached, and review individual tickets when approval is required. Choose the credential fields |
vendorInviteChat |
b3s__Vendor_Invite__c record page |
The chat thread for an invite. Admins post Internal (contact-less) messages here. |
vmsObservationUtility |
Utility bar of the 3B VMS app | A read only live feed of VMS standalone shifts and booking requests (VMS__c = true) touched recently. Shifts must have no Working Pattern (Working_Pattern__c is blank), excluding shifts generated from finalized booking requests, grouped by client (requisition Account, else the job's account), each row badged with its Invited / Proposed counts, polling every 20 seconds, every row linked to its record. Placement extensions on VMS placements are Extension rows; one Pending and awaiting the Master Vendor is flagged Approve, counted in the header and highlights the utility bar item until reviewed. |
The client's self service surface. Its VMS view is a mode toggle that appears only when the org's Client Shift Manager definition declares a proposal schedulable. Tabs:
Shared_Worker__c records shared with this client, with a direct request flow (request a specific worker for an open requisition, short-circuiting the broadcast).cost schedulable). See Pay and bill engine.There is no polling, each tab loads its own data on activation, and a Refresh button re-pulls the active tab. A client contact who acts for several accounts (for example a trust over several schools) gets an account selector that narrows every tab.
The agency's surface. App type Vendor Portal, guest user plus session key, everything scoped to the vendor's Account, tabs and actions gated by the vendor contact's membership User Profile. Tabs:
Ticket__c credentials with file evidence, plus Share (create a Shared_Worker__c for a client in the vendor's pool) and Revoke. Vendors with onboarding templates add workers through a guided wizard and see an onboarding badge per worker.revenue schedulable), with worker, job and site filters.Tab badges are configuration defined count widgets (the definition's badges array), refreshed per tab.
Who may do what in the two portals is set by User Profiles (b3s__User_Profile__c), records of checkboxes for each tab and action, and Account Memberships (b3s__Account_Membership__c), which link a portal contact to each account it acts for with a profile per account. Memberships are the only source of a profile, for clients and vendors alike. A membership with Include Child Accounts also covers the account's direct children, which is how a trust user reaches every school.
proposal schedulable or a vmsWorkflowMode key) requires one.Requisition approval is part of the profile. Approve Requisitions lets a client approve or reject requisitions that are Pending Approval, and Requires Requisition Approval makes new VMS requests for that account start as Pending Approval (stamped by the server). The former Contact checkboxes VMS Approver (VMS_Approver__c) and VMS Requires Approval (VMS_Requires_Approval__c) are removed from the package (deprecated in your org after the upgrade).
Full reference, setup walkthrough and permission matrix: VMS access profiles and account memberships.
Work through these in order. Items marked Sample config are Custom Metadata records included as sample configuration with the package. Deploy them into your org and adapt them; they are not created automatically on install.
WFM_Admin: assign to master vendor and internal staff. Grants the VMS objects, the invite tier fields, Booking Request, User Profile and Account Membership, and the Apex classes behind the admin panels.WFM_Guest_User: the base for portal guest access.WFM_Admin_Object_Access, WFM_VMS_Client_User_Object_Access and WFM_VMS_Vendor_User_Object_Access. Deploy them and assign each next to its packaged set; the packaged set still carries the field permissions.X3B_VMS) gives internal users a home for the workflow: Contact, Account, Booking Request, Shift, VMS Sharing Group, Onboarding Template, Group, Job, Site and User Profile tabs, plus the observation utility bar. The packaged Contact and Account record pages show an Account Memberships related list.Shift_Record_Page gets shiftRatePreviewer plus vmsBroadcastPanelBooking_Request_Record_Page gets vmsBroadcastPanelVendor_Invite_Record_Page gets vendorInviteChatWorker_Proposal__c gets workerProposalCredentialsContact_Record_Page gets workerOnboardingStatus on its VMS tabBooking_Request__c, VMS_Sharing_Group__c, Ticket_Type__c).Both run as 3B Portals guest surfaces using an encrypted session key (contactId plus expiry) rather than a Salesforce login:
b3p__Portal_Block.Vendor_Portal).Client_Shift_Manager, Vendor_Portal), these carry the app definition JSON: the schedulables, vmsWorkflowMode, and the badges widget array.ClientShiftManager_* and VendorPortal_* records define which records each tab loads; missing these leaves the portal surfaces blank.WFM_Guest_User permission set and read and create access to the VMS objects.VMS_Sharing_Group__c records.VMS_Sharing_Group_Assignment__c for the client Account and for each sub-vendor Account in that group. Set Role to Client on the client assignment, Vendor on each sub-vendor, and Master Vendor on the master vendor. Set Tier__c on the vendors you want in later waves.Ticket_Type__c records your workers will be certified against (for example DBS, Working With Children Check, BLS or ACLS, state licences).Certificate_Requirement__c rows on the request form, no upfront config needed beyond the ticket types.b3s__VMS_Block_On_Credentials__c) on a client Account, or set the root key "blockOnMissingCredentials": true in the Client Shift Manager definition, to refuse approval while a required credential is not valid for the whole request. Otherwise gaps are warnings. See Credential check.On a proposal, a reviewer can open a credential to check details such as its number and validity dates. Choose the fields separately for Salesforce and each portal.
In Salesforce, the Worker Proposals and Placements tabs of the VMS broadcast panel use the same fields as Attached Credentials on the proposal record. In Setup > Custom Metadata Types > Component Configuration, manage records and create one record of type VMS Credentials. Enter the following in JSON to show the validity dates, credential number and review timestamp.
{
"ticketFields": [
"b3s__Valid_From__c",
"b3s__Valid_Until__c",
{ "fieldPath": "b3s__Credential_Number__c", "label": "Credential Number" },
{ "fieldPath": "b3s__Reviewed_Timestamp__c", "label": "Reviewed" }
]
}
The list replaces the default Valid From and Valid Until fields. Enter Ticket field paths in display order. A string uses the Salesforce field label. Use fieldPath and label together to give a field a different label. Relationship paths are supported, and a lookup displays the related record's name. The list omits blank values and fields the reviewer cannot read. If the panel reports a configuration error, check for a second record of this type, invalid JSON or a path that does not exist on Ticket.
In Client Shift Manager, set schedulables.ticket.reviewFields to replace the validity date summary on proposal cards. Use the same entries as a title array and include each path in the vmsTickets loader's fieldToLoad. For example, add this property to the ticket definition to display a credential number and its expiry date.
{
"reviewFields": [
{ "label": "Credential number", "fieldPath": "b3s__Credential_Number__c", "hideIfNull": true },
{ "label": "Valid until", "fieldPath": "b3s__Valid_Until__c", "formatter": "date", "hideIfNull": true }
]
}
In Vendor Portal, use schedulables.ticket.title for credential details on the Workers tab and in the proposal and onboarding wizards. Add the fields to the tickets loader's fieldToLoad.
Working_Pattern_Type__c. Build them either on the type's record page (workingPatternBuilder, per day times, or per day Rate Basis with template times in Rate Basis mode: see Rate basis templates) or from the client VMS view's New Pattern Type action (per week uniform times).b3s__One_Off__c) that belongs to that request, is never listed as a template, and can change only while the request's VMS Stage is New and it has no placement. It needs Manage Booking Requests, not Manage Pattern Types. Vendors see the same preview through View schedule on their booking invites. See Client Shift Manager, including the upgrade steps for existing configurations.patternTypes loader (embedded in the Client Shift Manager configuration's b3s__Loaders__c) lists every reusable pattern type (b3s__One_Off__c = false). Add an account scoping clause when each client should see only its own patterns.To exercise the full flow you need:
VMS_Sharing_Group__c (give one vendor Tier__c = 2 to see staggering).Shift__c with Required_Staff__c of 1 or more, and or a Working_Pattern_Type__c plus a Booking_Request__c referencing it.WFM_Admin permission set assigned to your internal reviewer.The unpackaged Demo Data tab sets up a UK education example in a sandbox or scratch org. The VMS_UK_EDU template creates the Northwind Academy Trust (NAT), five schools, one master vendor and four sub-vendors. Use the approved placement to try Pay/Bill and invoicing without first raising a request.
VMS_Default and VMS_Daily_Overtime Pay/Bill settings and the OT_Weekly pay code.Delete demo data is an optional reset for a disposable demo org. It clears operational records across the org, including shifts, requests, credentials, rate cards, invoices and their linked files, even when those records belong to other clients. Account and Contact deletion is narrower. It includes named demo accounts, their contacts and contacts with an email ending in .demo. A deletion error rolls back the reset. Run Deploy on its own when you only need to refresh the example.
rateGroups loader is scoped to the job's account, so a school-only contact uses the default rate sheet. A trust contact can choose a rate group.@northwind.example email address.DEMO- credential number where the type requires one.Inner London, and any rate the formula cannot reproduce gets an "agreed" Set modifier, so the card reproduces every agreed rate. The Non Classroom card uses the VMS_Daily_Overtime policy: Hourly time over 10 hours a site-local day is OT_2_0, over 8 hours OT_1_5, over 40 hours a week OT_Weekly, priced by its Overtime (1.5x), Double Overtime (2x) and Weekly Overtime (pay 1.5x, bill 1.35x) lines. Full Day shifts retain their original pay code. Every card named NAT Master Vendor - ... is rebuilt on a rerun.ABS, VAC, CPD, EXAM, SEN and INSET, and NAT cost centers MATHS, SCI and SEN. Reason codes and cost codesVMS_Default pay/bill setting) has no split rule, so school work produces one invoice per trust and SBU, billed to NAT through each school's Invoice To Account. Group rules add a section per school, then a line per worker, rate basis and pay code. It charges 20 % VAT on bills and self-bills, no VAT on expenses, requires a self-billing agreement, and adds a backing sheet with OT Hours, Double OT Hours, Hours and Net columns. For one invoice per school, still billed to the trust, set the split rule to b3s__Shift__r.b3s__Work_Site__r.Name. Invoice emails go only to contacts on the invoice's own account (NAT).DEMO-00001, rate group Teacher 1, reason ABS, cost center MATHS) for Oakfield Academy over last week. It was broadcast to Fabrikam Education Recruitment, which accepted and proposed Alex Rivera. The proposal is Converted into a placement with Monday to Friday 08:00 to 16:00 shifts, breaks generated and approved by the client. Run Pay/Bill for NAT over that week, then generate and issue invoices. It is created by a queued Apex job after Deploy finishes, so its shifts get their breaks before they are approved. A rerun keeps the placement (matched by its PO number). Delete demo data removes it.Suggested walkthrough:
VMS__c = true).Available_From windows.Not Selected. The internal panel and the Client Shift Manager share one server-side review that runs in a single transaction.One server-side rule decides a proposal's credential status. The internal panel shows its result, the Client Shift Manager and Vendor Portal render the same rule, and approval re-runs it on the server. For each required credential type the worker's best ticket counts, and only the tickets attached to the proposal (all of the worker's tickets when none are attached):
| Status | When |
|---|---|
| Valid | Approval is satisfied and the credential covers the request period |
| Expires before end | Approval is satisfied and the credential is valid now, but Valid_Until__c is before the request ends (shift end, booking request End__c) |
| Pending approval | Approval is required and outstanding, or Valid_From__c is in the future |
| Expired | Valid_Until__c is in the past |
| Missing | No ticket of that type, or only Rejected or Revoked ones |
Approval is satisfied when the ticket is Approved, its Ticket Type has Approval not Required, or the effective WFM setting Disable Ticket Approval is enabled. Reviewers still decide whether to approve the worker proposal. Credential approval settings
Integrators can call it from a portal with callout('b3s.VmsPortalService', { endp: 'checkProposal', proposalIds }), which returns { results: { <proposalId>: { items, gaps, hasRequiredGaps, blockOnCredentials, requisitionEndDate } } } for the proposals the session may read. A successful Client Shift Manager approval returns the non-blocking gaps as credentialWarnings.
The Generate Shifts flow on a Working Pattern (and the auto-generation below) generates the placement's shifts:
Site__c.Timezone__c, else the org default), never the running user's, so a 07:00 pattern day starts at 07:00 on site.b3s__Last_Generation_Log__c); the flow's final screen shows the previous run.b3s__Auto_Generate_Placement_Shifts__c on the WFM Settings custom setting, default off): when on, approving a booking request proposal enqueues the job in Delta mode for the new placement (needs the request's Start and End dates).blockOnMissingCredentials). Without the knob the Client Shift Manager approves and shows the gaps as a warning.