Vendor management system (VMS) guide

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.

What the VMS is, and the problem it solves

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.

Two kinds of requisition

A requisition is always an existing WFM record flagged for VMS (b3s__VMS__c = true). There are two shapes:

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.

The object model

All objects are namespaced b3s__ in the installed org.

Matching clients to vendors, VMS sharing groups

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.

Upgrading existing sharing groups

  1. Populate Role on every existing assignment, including the client side. Blank assignments are excluded from invitations and sharing; no role is inferred or defaulted. Role is required on the standard edit layout, while legacy blank records can remain stored during migration.
  2. Review the Role on each assignment. The existing Account Is Master Vendor setting still controls internal-worker and payroll behavior; keep it aligned with the intended master vendor.
  3. Update the Client Shift Manager definition and loaders using the client portal configuration. Its vendor filter is b3s.VmsVendorPoolFilter, restricted to Vendor/Master Vendor assignments. Its master-vendor selector reads the assignment Role.
  4. Update the Vendor Portal 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.
  5. Grant Role field access: WFM Admin can edit it; WFM VMS Client User and WFM VMS Vendor User can read it. Apply equivalent access to custom permission sets. Sample Custom Metadata changes must be applied to existing customer configurations; a package upgrade does not replace customized definitions.

The workflow objects

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:

Routing modes

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):

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 mediated definition still loads Proposed rows (the server still refuses to review them). Add a b3s__Status__c != 'Proposed' clause to the vmsProposals loader and drop 'Proposed' from the proposals badge 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.

Tiered invitations (first refusal windows)

Vendors can be given staggered first refusal windows so your best agencies get first crack at a requisition.

  1. Configure defaults: set Tier__c on each VMS_Sharing_Group_Assignment__c (1 is first chance, 2 is second wave). Blank means tier 1.
  2. Broadcast: the client's broadcast modal groups the vendor pool by tier, with All / None selection both globally and per tier. Every tier except the highest has an "Exclusive for" picker: how long that tier has the requisition to itself before the next tier opens. Options come from the invite definition's 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.
  3. Enforcement: the portal hides invites whose window is in the future, and the validation rule rejects any early response at the data layer.

No scheduled jobs or platform events are involved, the timestamps do the work. Tiers are always resolved server side from the sharing assignments.

The tools you deploy

Admin and master vendor tools (native Salesforce)

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.

Client tool, Client Shift Manager (guest portal)

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:

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.

Sub-vendor tool, Vendor Portal (guest portal)

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:

Tab badges are configuration defined count widgets (the definition's badges array), refreshed per tab.

Roles and access (access profiles)

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.

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.

Out of the box setup checklist

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.

Permission sets

Apps, pages and tabs

Guest portals (Client Shift Manager and Vendor Portal)

Both run as 3B Portals guest surfaces using an encrypted session key (contactId plus expiry) rather than a Salesforce login:

The VMS sharing pool (per customer data)

  1. Create one or more VMS_Sharing_Group__c records.
  2. Add a 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.

Credentials

  1. Create the Ticket_Type__c records your workers will be certified against (for example DBS, Working With Children Check, BLS or ACLS, state licences).
  2. Requirements are captured per requisition as Certificate_Requirement__c rows on the request form, no upfront config needed beyond the ticket types.
  3. Decide whether credential gaps block approval. Tick VMS Block On Credentials (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.
  4. Optional: build Onboarding Templates (Onboarding Templates tab in the 3B VMS app) and assign them to vendor accounts so vendors onboard workers against a checklist. Tick Requires Valid Until and Requires Evidence on the Ticket Types that need them. See Worker onboarding templates.

Show more credential fields

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.

Pattern types (for booking requests)

Demo and go-live data checklist

To exercise the full flow you need:

UK education demo data

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.

  1. Deploy the VMS sample metadata to the demo org. The template needs the VMS_Default and VMS_Daily_Overtime Pay/Bill settings and the OT_Weekly pay code.
  2. Assign WFM Admin Object Access to the administrator who will run the demo. Open Demo Data from the App Launcher.
  3. Select VMS - UK education (NAT trust, 5 schools, 4 vendors) and choose Deploy demo data. The summary identifies the separate Apex job that creates the approved placement. Check Setup > Apex Jobs if the placement is missing. Running Deploy again keeps the existing demo placement and rebuilds the demo rate cards.

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.

Records in the demo

Suggested walkthrough:

  1. Jordan Lee (or Sam, who picks the school account) raises a STEM Teacher request for Oakfield Academy in the Client Shift Manager. The Credentials step derives the requirements from the STEM Teacher Job Group.
  2. NAT is in MSP mode, so the master vendor (an internal user) broadcasts it to the UK Education Supply Network from the request's VMS panel.
  3. A vendor user accepts the invite in the Vendor Portal, then onboards a new worker through Add worker: details, the STEM Teacher template (each credential filled in or skipped), any extra credentials, and finally the accepted invite, which proposes them in the same flow.
  4. The master vendor screens and approves the proposal directly, or sends it to Client Review for Sam to approve. Credential gaps show warnings but do not block approval.
  5. Approval places the worker; the placed shifts get their breaks automatically.
  6. Approve the placed shifts, run Pay/Bill for NAT over their dates, then generate invoices: one invoice per SBU billed to NAT, a section per school, lines grouped by worker, rate basis and pay code, backing sheets, and a self-bill per vendor. The seeded placement (last week, Alex Rivera) is already at this step.
  7. In Settings, Users, a Full Access user adds a user on any profile of their side. Planning and Finance users have no Settings tab.

How the end to end workflow runs

  1. Requisition created: a client raises a demand shift or booking request (stamped VMS__c = true).
  2. Broadcast: the client (autonomous) or master vendor (mediated) selects vendors from the pool and broadcasts. Invites are created, tiered vendors get future Available_From windows.
  3. Vendor responds: in the Vendor Portal, the agency sees the invite once its window opens, marks it Seen, and proposes one or more workers with their credentials.
  4. Review: the reviewer checks each proposal, reviews attached credentials against the requisition's requirements (a badge per gap: Missing, Expired, Expires before end, Pending approval; see Credential check), and in mediated mode forwards good proposals to the client.
  5. Approval to placement: approval assigns the worker to the shift itself (single shift, blank Required Staff), creates the child shift (demand) or the Working Pattern placement (booking request), marks the proposal Converted, and when the requisition is filled, releases the open invites of vendors that placed nobody on that requisition (the winning vendors' invites keep their status) and marks its other open proposals Not Selected. The internal panel and the Client Shift Manager share one server-side review that runs in a single transaction.
  6. Chat throughout: client, vendor and internal messages per invite keep the conversation scoped to that requisition and vendor.
  7. Downstream: placed workers' shifts flow into the standard WFM timesheeting apps and can be rated by the Pay and bill engine.

Credential check

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.

Placement shift generation

The Generate Shifts flow on a Working Pattern (and the auto-generation below) generates the placement's shifts:

Important behaviours