The Vendor Portal is the sub-vendor (staffing agency) surface of the VMS. Agencies use it to respond to broadcast requisitions, propose workers, manage their own worker roster and credentials, share workers with clients, and see the shifts they have won and the revenue those shifts generate. Agency users sign in through the portal without Salesforce logins, so a master vendor can put many downstream agencies on the platform.
For the overall VMS object model, tiering and routing, read the VMS guide first. If you are running the VMS without the scheduler, see VMS standalone. The client side of the same workflow lives in the Client scheduler. This article covers the Vendor Portal app itself and everything an implementer configures on it.
The portal is portable. It is hosted either as a drag-and-drop block inside a 3B Portals page (tag x-vendor-portal) or on the packaged Vendor Portal Visualforce page, which mounts the same component.
Vendor Portal. This is a session-authenticated portal surface: the app runs as a Salesforce Site Guest User and must present a valid session key.Contact / Account only. Every query is scoped by the :accountIds token, which on the Vendor Portal is the accounts of the signed-in Contact's Account Memberships (normally one: the vendor company). The vendor only ever works with its own account's records.b3s__Account_Membership__c) with a User Profile, normally on its own vendor account. A contact without one sees "Your profile is not yet configured. Please contact your administrator." and nothing else. The Contact itself carries no profile.Your profile does not allow this change to [<object>] for this account. Invite responses may only change the status, seen and responded timestamps and response comments; a proposal must name a worker from the vendor's own account; onboarders cannot edit a contact that holds an Account Membership, and no portal session can move a contact to another account. Records fetched by Id are deny by default and filtered to the vendor's account. A portal session can never query or save User Profiles or Account Memberships through the record services. The rule table is in VMS access profiles and account memberships.Beyond issuing session keys, the only per install setup is creating User Profiles and giving each vendor portal contact an Account Membership on its vendor account with one.
Set the tab attribute to show one tab on its own, without the header or the tab bar. Use it to put individual sections on separate 3B Portals or Experience Cloud pages, for example an Invoices page and a Settings page.
<x-vendor-portal tab="invoices"></x-vendor-portal>
In the 3B Portals builder, drop the Vendor VMS block and pick the section in its Tab setting (leave it on All tabs for the full portal). On the packaged Visualforce page, pass it as a URL parameter: /apex/b3s__VendorPortal?sessionKey=...&tab=invoices.
tab value |
Section |
|---|---|
home |
Home dashboard |
invites |
Invites |
requests |
Requests |
proposals |
My Proposals |
workers |
Workers |
schedule |
Schedule |
timesheets |
Timesheets |
revenue |
Revenue |
invoices |
Invoices |
settings |
Settings |
The embedded tab boots, authenticates and checks access exactly like the full portal. It keeps its Refresh button. If the signed-in contact's User Profile does not grant the tab (or the configuration lacks the schedulable the tab needs, see Access profile gating), the page shows "This section is not available for your access profile." instead. Tab badges are not shown in embedded mode. A blank or missing tab renders the full portal.
The whole app is driven by one b3s__Component_Configuration__mdt record with b3s__Type__c = "Vendor Portal" (sample record WFM_Vendor_Portal, shipped as a Custom Metadata record included as sample configuration with the package). Its b3s__JSON__c field holds the app definition. Per-tab data comes from the loaders in the same record's b3s__Loaders__c field; there is no separate configuration record per tab.
The definition has four top-level sections:
| Key | Controls |
|---|---|
timezonePreference / is24Hour / firstDay |
Time and date display. timezonePreference is client (site/local time) or user; firstDay is the first day of the week (0 = Sunday; leave it out to follow the browser locale); is24Hour toggles 24-hour clock. |
badges |
Array of named count widgets rendered as tab badges. See Tab badges. |
dashboard |
Array of KPI tiles for the Home tab. See Home dashboard. |
schedulables |
Named object and field-path definitions used everywhere in the app. Every field API name the app reads or writes is remappable here. See Schedulables. |
For the meaning of every definition key (formatters, title entries, canEdit conditions, record-form field types), see the App definition JSON reference.
schedulables.<name> is where an implementer remaps the VMS onto their own fields and objects. Nothing in the app hard-codes an API name; every path is read from here at runtime, so you can point the portal at custom fields without any code change. The shipped definition declares these:
| Name | objectType |
Role in the app |
|---|---|---|
invite |
b3s__Vendor_Invite__c |
Broadcast requisitions on the Invites tab. |
proposal |
b3s__Worker_Proposal__c |
Workers this vendor has put forward. |
worker |
Contact |
The vendor's worker roster. |
ticket |
b3s__Ticket__c |
Worker credentials with file evidence. |
sharedWorker |
b3s__Shared_Worker__c |
A worker shared with a client account. |
onboardingTemplate |
b3s__Onboarding_Template__c |
Onboarding templates assigned to the vendor (guided Add worker). See Worker onboarding templates. |
workerOnboarding |
b3s__Worker_Onboarding__c |
The templates each worker carries (onboarding badges). |
client |
b3s__VMS_Sharing_Group_Assignment__c |
Eligible Client or Master Vendor accounts in the worker's sharing pool. |
requirement |
b3s__Certificate_Requirement__c |
Credentials a requisition requires. |
shift |
b3s__Shift__c |
Won shifts on the Schedule tab (scoped by b3s__Supplier_Account__c). |
placement |
b3s__Working_Pattern__c |
Longer placements on the Schedule tab (scoped by the converted proposal's vendor). |
timesheetPlacement |
b3s__Working_Pattern__c |
Placements whose workers the Timesheets tab offers in its worker picker. Its presence shows the tab. |
revenue |
b3s__Pay_Bill_Staging__c |
Supplier lines paid to this vendor on the Revenue tab. |
invoice |
b3s__Invoice__c |
Issued self-bills on the Invoices tab. Its presence shows the tab. |
invoiceLine |
b3s__Invoice_Line__c |
Lines of an expanded self-bill. |
message |
b3s__VMS_Message__c |
Per-invite chat messages. |
Each schedulable carries:
*FieldPath) that name the API fields the app reads.title array: the labelled field list rendered on each card (with per-entry formatter, hideIfNull, and composite start:end paths for time ranges).recordFormFields: the edit/create form for that record type.canEdit / canDelete gates: either a boolean or a condition object evaluated against the record.A trimmed invite schedulable, showing the field paths, a couple of title entries and the query form:
"invite": {
"objectType": "b3s__Vendor_Invite__c",
"statusFieldPath": "b3s__Status__c",
"shiftFieldPath": "b3s__Shift__c",
"bookingRequestFieldPath": "b3s__Booking_Request__c",
"vendorAccountFieldPath": "b3s__Vendor_Account__c",
"tierFieldPath": "b3s__Tier__c",
"availableFromFieldPath": "b3s__Available_From__c",
"expiresFieldPath": "b3s__Expires__c",
"seenTimestampFieldPath": "b3s__Seen_Timestamp__c",
"respondedTimestampFieldPath": "b3s__Responded_Timestamp__c",
"responseCommentsFieldPath": "b3s__Response_Comments__c",
"title": [
{ "label": "Status", "fieldPath": "b3s__Status__c", "hideIfNull": false },
{
"label": "Shift Times",
"fieldPath": "b3s__Shift__r.b3s__Scheduled_Start_Time__c:b3s__Shift__r.b3s__Scheduled_End_Time__c",
"formatter": "startEndWithDate",
"siteTimezoneFieldPath": "b3s__Shift__r.b3s__Work_Site__r.b3s__Timezone__c",
"hideIfNull": true
}
],
"canEdit": false,
"canDelete": false,
"recordFormFields": [
{
"field": "b3s__Response_Comments__c",
"labelOverride": "Comments",
"type": "field-text-area",
"required": true,
"columns": "col-span-2"
}
]
}
canEdit / canDelete accept a boolean, or a condition that is re-evaluated against each record so the same card is editable in some states and locked in others. A proposal is only editable while it is still Proposed:
"canEdit": {
"condition": {
"allOrSome": "all",
"selectors": [
{ "field": "b3s__Status__c", "operator": "equals", "value": "Proposed" }
]
}
}
A ticket is editable only while its approval is still open (null, Queried or Rejected). Once a buyer approves it, the vendor can no longer change it:
"canEdit": {
"condition": {
"allOrSome": "some",
"selectors": [
{ "field": "b3s__Approval_Status__c", "operator": "isnull", "value": true },
{ "field": "b3s__Approval_Status__c", "operator": "equals", "value": "Queried" },
{ "field": "b3s__Approval_Status__c", "operator": "equals", "value": "Rejected" }
]
}
}
recordFormFields on the ticket schedulable shows two patterns worth calling out: a field-select whose options come from a loader, and a file manager that lets a worker's credential carry evidence documents.
"recordFormFields": [
{
"field": "b3s__Ticket_Type__c",
"labelOverride": "Credential Type",
"type": "field-select",
"required": true,
"loader": "ticketTypes",
"optionLabelField": "Name",
"optionsInPopout": true,
"columns": "col-span-2"
},
{ "field": "b3s__Valid_From__c", "type": "field-date-input", "columns": "col-span-2" },
{ "field": "b3s__Valid_Until__c", "type": "field-date-input", "columns": "col-span-2" },
{
"label": "Evidence",
"type": "record-files-manager",
"translationKey": "record_files",
"canCreate": true,
"canDelete": true,
"columns": "col-span-2"
}
]
Each tab is a self-contained section that loads only the loaders it reads when it is opened, and again after a save. Re-clicking the active tab, or Refresh, reloads it. There is no background polling.
Each tab except Home shows only when the contact's membership User Profile ticks its checkbox, and the portal opens on the first visible tab. Actions are gated the same way, checked against the record's account through each schedulable's accountFieldPaths.
| Tab | Checkbox |
|---|---|
| Invites | b3s__Tab_Invites__c |
| Requests | b3s__Tab_Requests__c |
| My Proposals | b3s__Tab_Proposals__c |
| Workers | b3s__Tab_Workers__c |
| Schedule | b3s__Tab_Schedule__c |
| Timesheets | b3s__Submit_Timesheets__c (and the vendorShift schedulable) |
| Revenue | b3s__Tab_Revenue__c |
| Action | Checkbox |
|---|---|
| Accept, Reject, Query an invite; auto Seen stamping | b3s__Respond_To_Invites__c |
| Propose a worker, edit or withdraw a proposal, curate its credentials, Accept or Decline a worker request | b3s__Propose_Workers__c |
| Add or edit a worker, edit a worker's credentials, onboard a worker against a template (Complete onboarding) | b3s__Onboard_Workers__c (credential edits in the proposal wizard also accept b3s__Propose_Workers__c) |
| Share a worker, Revoke a share | b3s__Share_Workers__c |
| Invite and request chat | b3s__Use_Chat__c |
| Edit actual times and breaks, add and edit expenses, submit timesheets and expenses | b3s__Submit_Timesheets__c |
The shipped badges and dashboard tiles use :accountIds(<tab checkbox>), so a tile for a tab the contact cannot open counts nothing.
| Tab | Reads | What it does |
|---|---|---|
| Home | badges + dashboard tiles | KPI overview; the dashboard component loads its own data. |
| Invites | invite, requirement, proposal, worker, ticket |
Respond to and propose against broadcast requisitions. |
| Requests | proposal, invite, requirement, ticket, worker, message |
Workers the client or master vendor requested directly: accept, decline, chat. |
| My Proposals | proposal, invite, requirement, ticket, worker |
Track and manage the workers this vendor put forward. |
| Workers | worker, ticket, sharedWorker, client, onboardingTemplate, workerOnboarding |
Manage the roster, credentials, guided onboarding, and worker sharing. |
| Schedule | shift, placement |
Read-only view of won shifts and placements. |
| Timesheets | vendorShift, vendorExpense, break |
Report actual times, breaks and expenses for supplied workers and submit them for client approval. |
| Revenue | revenue |
Gross expected pay lines for the vendor. |
| Invoices | invoice, invoiceLine |
Issued self-bills and self-bill credit notes, with PDF and backing sheet CSV download. Shown only when the definition declares invoice and the profile grants Invoices Tab. |
Lists b3s__Vendor_Invite__c for the vendor's Account whose shift or booking request has not ended. Past work is on the Schedule tab.
Scope select. Next to the search box, with a count per option. The tab opens on Open.
| Scope | Shows |
|---|---|
| Open | Invites still in play: the request is not Complete or Canceled, and the invite is not Rejected, Released or Expired |
| Won | Closed invites (request Complete, or invite Rejected, Released or Expired) where one of the vendor's proposals is Approved or Converted |
| Lost | Closed invites without an Approved or Converted proposal |
| Canceled | The request or the invite is Canceled |
| All | Everything above |
A booking request that the vendor has partly staffed stays Open until it is Complete. Labels use the translation keys invites.scope.<all|open|won|lost|canceled|past> with a %{count} placeholder.
Server-paged list. When the definition declares the root key lists.invites, see Server-paged Invites list below. Without it the tab works as described here.
End date. Set by the invite schedulable keys shiftEndFieldPath (b3s__Shift__r.b3s__Scheduled_End_Time__c) and bookingEndFieldPath (b3s__Booking_Request__r.b3s__End__c); both paths must be in the invites loader's fieldToLoad. Without them no invite is treated as ended. A booking request ending today stays until the end of the day.
Tier windows gate visibility. A tiered broadcast staggers when each vendor first sees the invite. An invite is hidden and left un-Seen until its b3s__Available_From__c has passed (blank means tier 1, immediate). Later tiers surface as their windows open. The same window is enforced server-side, so a vendor can respond only once its window opens.
Expiry shows a still-actionable invite as Expired in the UI once b3s__Expires__c passes. The record's b3s__Status__c keeps its last value, so filter reports on b3s__Expires__c instead.
Rate basis. The shipped invite card shows the request's Rate Basis (b3s__Shift__r.b3s__Rate_Basis__c and b3s__Booking_Request__r.b3s__Rate_Basis__c in the invite title, both in the invites loader's fieldToLoad), so the vendor knows whether the rate is hourly, half day or full day before proposing.
Actions: Accept, Reject, and Query (opens a comments form that writes back on b3s__Response_Comments__c), plus Chat (opens the per-invite thread against b3s__VMS_Message__c). Booking request invites also get View schedule (see View schedule on booking invites).
Seen receipts: a New, available invite is auto-stamped Seen (with a timestamp) on load, once each, so the broadcasting party gets a read receipt. Only contacts with Respond To Invites stamp it.
Required credentials show as a list on each invite card and in Manage: one row per b3s__Certificate_Requirement__c with the ticket type name, and long names are cut off with the full name on hover. To add a secondary line (for example category or a required flag), list field paths in schedulables.requirement.detailFieldPaths and add the same paths to the requirements loader's fieldToLoad. Values are joined with ยท. A checkbox that is true shows its field label, and false or blank values are skipped:
"requirement": {
"objectType": "b3s__Certificate_Requirement__c",
"ticketTypeNameFieldPath": "b3s__Ticket_Type__r.Name",
"detailFieldPaths": ["b3s__Ticket_Type__r.b3s__Category__c", "b3s__Is_Mandatory__c"]
}
Once accepted, the invite gains Propose (a two-step wizard: pick the worker in the proposal form shown inline on the first step (proposal.recordFormFields, saved on Next), then attach the credentials that travel with the proposal; on the Credentials step each required credential badge shows its status from the shared credential rule (green Valid; Expires before end when the ticket lapses before the request ends; Pending approval; Expired; Missing), and a warning banner names the gaps so the vendor knows they are proposing without everything the request needs) and Manage (a console showing the invite, its required credentials, and every proposal the vendor has against it). Each invite card also shows how many workers the vendor has already proposed for it.
Every invite on a booking request shows a View schedule button, whatever the invite's status. It opens a read-only month calendar of the shifts the request's working pattern creates from the booking start date: the same preview the client sees in the Client Shift Manager request wizard. It works for requests with a reusable pattern type and for requests with a custom schedule, where each day can carry its own Rate Basis (Full Day, Half Day, Hourly). Clicking a shift does nothing; Close closes the modal.
b3s.VmsPortalService getBookingPattern. A vendor contact may read it when it can read an invite on that request: any invite of its own accounts, in any status. No access profile permission is needed beyond that.Configuration:
| Key | Where | Purpose |
|---|---|---|
bookingStartFieldPath |
schedulables.invite |
Path to the booking start date, for example b3s__Booking_Request__r.b3s__Start__c. Required: without it the button is hidden. The path must be in the invites loader's fieldToLoad (the sample already loads it). |
bookingRequestFieldPath, bookingEndFieldPath |
schedulables.invite |
The booking request Id and end date (existing keys). An invite without a booking request has no button. |
startFieldPath, endFieldPath, siteTimezoneFieldPath |
schedulables.shift |
Shape of the previewed shifts (existing keys). |
rateBasis.field |
schedulables.shift |
Field the day's Rate Basis is written to on each previewed shift, for example { "field": "b3s__Rate_Basis__c" }. |
shiftBulkViewTitle |
schedulables.shift |
Title of each previewed shift. Add a Rate Basis entry so vendors see the day's value. |
Sample additions (merge them into your own Vendor Portal Component Configuration; a package upgrade does not change it):
"invite": {
"bookingRequestFieldPath": "b3s__Booking_Request__c",
"bookingStartFieldPath": "b3s__Booking_Request__r.b3s__Start__c",
"bookingEndFieldPath": "b3s__Booking_Request__r.b3s__End__c"
},
"shift": {
"rateBasis": { "field": "b3s__Rate_Basis__c" },
"shiftBulkViewTitle": [
{ "label": "Rate Basis", "fieldPath": "b3s__Rate_Basis__c", "hideIfNull": true }
],
"startFieldPath": "b3s__Scheduled_Start_Time__c",
"endFieldPath": "b3s__Scheduled_End_Time__c",
"siteTimezoneFieldPath": "b3s__Work_Site__r.b3s__Timezone__c"
}
The packaged WFM VMS Vendor User permission set grants read access to the new Working Pattern Type field One Off (b3s__One_Off__c); grant the same in your own permission set or profile if a vendor loader you add reads it. How clients build custom schedules: Client Shift Manager request wizard.
With the root key lists.invites in the definition, the server sorts, scopes, searches, counts and pages the invites (DataLoadingService listRecords), and the tab loads only the page on screen with its proposals and required credentials. Without the key the tab keeps loading every invite, so an org on an older Component Configuration is unaffected. Contract: Data loaders, server-paged lists.
b3s__Vendor_Action_Priority__c), then by the soonest shift start or booking start: New and Seen invites first, then Queried, then Accepted. Expired and closed invites sort last. See VMS request stage.searchFieldPaths: in the sample, the invite name and the job and site names of its shift or booking request.invites.source.shiftInvite / invites.source.bookingInvite, "All types" = invites.allTypes).Sample sources and base clause. Both sources use the invite schedulable; the source clause splits shift invites from booking invites:
"invite": {
"requestSelectionClause": ["b3s__Vendor_Account__c IN :accountIds AND (b3s__Available_From__c = null OR b3s__Available_From__c <= :now)"]
}
| Source | clause |
Sort keys (priority, start, end) |
|---|---|---|
shiftInvite |
b3s__Shift__c != null |
b3s__Vendor_Action_Priority__c, b3s__Shift__r.b3s__Scheduled_Start_Time__c, b3s__Shift__r.b3s__Scheduled_End_Time__c |
bookingInvite |
b3s__Booking_Request__c != null |
b3s__Vendor_Action_Priority__c, b3s__Booking_Request__r.b3s__Start__c, b3s__Booking_Request__r.b3s__End__c |
The scopes open, won, lost, canceled and all express the table above as clauses (request not ended: shift end >= :now, booking end blank or >= TODAY). Won and Lost use a semi-join on b3s__Worker_Proposal__c with status Approved or Converted. past takes an end before now inside the picked period (:contextStart / :contextEnd for shifts, :contextStartDate / :contextEndDate for bookings).
Configuration notes:
b3s__Available_From__c <= :now), so later tiers stay hidden on the server too.invite schedulable's field paths, not the invites loader. Every path a card, badge or console reads must be on the schedulable (the sample adds nameFieldPath, shiftStatusFieldPath, bookingRequiredStaffFieldPath and bookingPatternTypeNameFieldPath for this).proposals keyed on b3s__Vendor_Invite__c, requirements keyed on b3s__Shift__c / b3s__Booking_Request__c with the same paths on the invite. workers, tickets and ticketTypes still load in full.Lists the vendor's Requested proposals: the client (from the Client Shift Manager) or the master vendor (from the VMS Command Center) picked one of this vendor's shared workers directly and is waiting for confirmation. The tab badge counts them.
Requested_By__c and Requested_By_Contact__c (definition keys requestedByFieldPath and requestedByContactNameFieldPath on proposal; add both fields to the proposals loader's fieldToLoad), shows the requisition details and flags missing credentials.messages loader for this.Client Review (the client decides), a master vendor request moves to Proposed (back to the master vendor's Worker Proposals queue). It then appears under My Proposals. Decline sets it to Rejected; a decline note travels back on the proposal's comments.Proposed with no requester stamp, withdraw a Proposed or Client Review proposal, and answer a Requested one as above. It can never change Requested_By__c or Requested_By_Contact__c or move a proposal to Approved, Converted or any other status.Lists the vendor's own b3s__Worker_Proposal__c records (everything except Requested), with credential checking done client-side.
Grouped by invite: proposals are listed under their parent b3s__Vendor_Invite__c. Each group header shows the invite's schedulables.invite.title fields (shift times / booking dates, job, site, client comments, expiry ...) and a Manage button that opens the invite's manage console (only while the invite is still shown on the Invites tab). Search also matches the invite name and those fields. Change what the header shows by editing the invite title, not code.
Credential gap badges: the app checks the requisition's b3s__Certificate_Requirement__c rows against the proposed worker's b3s__Ticket__c records (only the tickets the vendor attached count; blank means all of them) with the same rule the server applies on approval, and flags each gap as "name: Missing / Expired / Expires before end / Pending approval". The request end comes from the invite's shiftEndFieldPath / bookingEndFieldPath; the ticket's approvalStatusFieldPath and validFromFieldPath count. See Credential check.
Proposed proposals can be edited, have their attached credentials curated, or be withdrawn. A duplicate-worker guard blocks proposing the same worker twice against one invite.
The Contact roster for the vendor's Account, excluding portal users: the workers loader filters b3s__VMS_Role__c NOT IN ('Client', 'Vendor') (blank counts as a worker), and workers added here are stamped VMS Role Worker by a hidden form field.
schedulables.worker.photoRequired to require the photo and schedulables.worker.templateRequired to require a template when the vendor has one available. Both settings default to false. Edit opens worker details and the photo editor. Complete onboarding lets the vendor return to the checklist and address gaps shown on the worker's badge. Worker photos and Worker onboarding templatesb3s__Ticket__c credentials, each of which can carry file evidence (see the record-files-manager form field above). Approval status is shown per credential.b3s__Shared_Worker__c with status Active. The clients loader uses b3s.VmsWorkerSharePoolFilter: a Vendor can share with Client or Master Vendor; a Master Vendor can share only with Client, always through a shared VMS group. The selected worker's own account determines the source role, not the signed-in user's Account. Sharing with self or another Vendor is excluded, and duplicates are blocked. A share can be Revoked (status flips to Revoked). Sharing a worker is what lets a client request that worker directly, producing the Requested proposals above.Who the vendor has working, when, and on what, for the period picked in the date control. It opens on the current week (switch to a day or month in the control). Same component as the Client Shift Manager Schedule tab.
shift schedulable (b3s__Shift__c), scoped by the supplying account: b3s__Supplier_Account__c IN :accountIds(b3s__Tab_Schedule__c). The supplier is stamped when a proposal is approved and on shifts generated from a VMS placement, so a worker who also works for another agency only shows that agency's shifts here.b3s__Working_Pattern__c), the longer-running assignments, hidden until the user ticks Show placements (they load only while it is on), scoped by the vendor of the proposal that became the placement: Id IN (SELECT b3s__Converted_Working_Pattern__c FROM b3s__Worker_Proposal__c WHERE b3s__Vendor_Invite__r.b3s__Vendor_Account__c IN :accountIds(b3s__Tab_Schedule__c)).The shipped Home tiles on shifts use the same b3s__Supplier_Account__c scope; the placement tiles still scope by the worker's account.
Both lists show filter chips from their schedulable's filters array. The shipped sample filters by worker, job and site (b3s__Contact__c, b3s__Work_Job__c, b3s__Work_Site__c on shift; b3s__Contact__c, b3s__Job__c, b3s__Site__c on placement). Both lists query server side for the picked period. Labels use the common.vmsSchedule.* translation keys. Both schedulables also ship a consolidation block (grouped by worker; shift totals Hours), so the lists open on a condensed table with a Summary / Individual toggle back to cards, remembered per viewer. Remove consolidation to get cards only. Contract: Consolidated approval view.
The vendor fills in timesheets for the workers it placed, in the same Timesheet Submission app the workers use (x-timesheet-submission, embedded the same way the Client Shift Manager Timesheets tab embeds Timesheet Approval). Shown with Submit Timesheets when the definition declares the timesheetPlacement schedulable.
timesheetPlacement placements overlapping that week (dateFilterMode: "overlap", includeOpenEnded: true so placements with no end date count).contactFieldPath / contactNameFieldPath).Sample schedulable:
"timesheetPlacement": {
"objectType": "b3s__Working_Pattern__c",
"startFieldPath": "b3s__Start__c",
"endFieldPath": "b3s__End__c",
"isFieldPathDateType": true,
"dateFilterMode": "overlap",
"includeOpenEnded": true,
"contactFieldPath": "b3s__Contact__c",
"contactNameFieldPath": "b3s__Contact__r.Name",
"selectionClause": [
"b3s__Contact__c != null AND Id IN (SELECT b3s__Converted_Working_Pattern__c FROM b3s__Worker_Proposal__c WHERE b3s__Vendor_Invite__r.b3s__Vendor_Account__c IN :accountIds(b3s__Submit_Timesheets__c))"
]
}
What the vendor can do here. The embedded app acts for a worker only on the shifts the vendor supplied, and only while the vendor's profile grants Submit Timesheets on them. Every save follows the Vendor Portal rules (see VMS access profiles): shift updates are limited to actual start and end, comments and Approval_Status__c = Submitted; breaks on its supplied shifts; expenses on its supplied shifts or placements; nothing once Approved. The vendor sees only the worker's shifts it supplied, not the worker's other work.
Anything else the worker form offers (adding an ad-hoc shift, changing job or site, shift tasks) is not available to the vendor. Payrolled and invoiced shifts stay locked.
Upgrading an org from the old Timesheets tab: in the Vendor Portal Component Configuration, replace the vendorShift, vendorExpense and break schedulables with timesheetPlacement, and remove the vendorExpensePlacements, jobs and rateGroups loaders (only the old tab used them). Labels: tab tabs.timesheets, picker timesheets.* (Vendor Portal translations), frame common.timesheetFrame.*.
Supplier lines from b3s__Pay_Bill_Staging__c whose payee is this vendor (b3s__Type__c = 'Supplier' AND b3s__Payee_Account__c IN :accountIds(b3s__Tab_Revenue__c)). Same component as the Client Shift Manager Costs tab. It has its own period navigation (defaulting to the current week), worker, job and site filter chips from the revenue schedulable's filters (paths through b3s__Shift__r), and summary tiles for total value, total hours (hours-unit lines only) and line count. The tiles total the lines the filters show. Labels use the common.payBillLines.* translation keys (total.revenue for the first tile). This is expected revenue, not settled payment. See the Pay and bill engine.
The self-bills issued to this vendor (b3s__Kind__c = 'Self-Bill', billed to the vendor's Account) 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, client, period, issue and due dates, net, tax, gross and status, and credit notes name the invoice they credit. Expanding a row loads its lines; Download PDF downloads the rendered document through the access-checked InvoicePortalService.getInvoicePdf endpoint, which re-checks the status, the kind and that the invoice is billed to the vendor's account. When a backing sheet is configured (the client's invoice configuration, or the vendor Account's own b3s__Backing_Sheet__c, which wins on its self-bills), Backing sheet (CSV) downloads the shift-level flat file through InvoicePortalService.getBackingSheet under the same checks, ready to import into the vendor's own systems; the button needs backingSheetFieldPath (b3s__Backing_Sheet_Document_Id__c) on the invoice schedulable and that field in the invoices loader. The list is read-only and loads when the tab is opened; re-clicking the tab refreshes it. How self-bills are configured, numbered and corrected: Invoicing.
A left sidebar of settings areas, shown with Tab_Settings__c when the definition declares the user schedulable. The Users area lists the account's vendor portal users (contacts with VMS Role Vendor) and, with Can Provision Users, adds users and deactivates or reactivates them. See VMS user provisioning.
Tab badges are defined by the definition's badges array. Each entry is a named count widget with an objectType and a selectionClause. Counts are computed server-side through the dashboard-data endpoint using the badges widget set, so context placeholders (like :accountIds) are merged on the server and the caller's row-level access applies. Badges are non-critical chrome: if a count fails, the tab simply shows no number.
The shipped definition ships two badges:
"badges": [
{
"name": "invites",
"type": "count",
"objectType": "b3s__Vendor_Invite__c",
"selectionClause": ["b3s__Vendor_Account__c IN :accountIds(b3s__Tab_Invites__c) AND b3s__Status__c = 'New' AND (b3s__Shift__r.b3s__Scheduled_End_Time__c >= TODAY OR b3s__Booking_Request__r.b3s__End__c >= TODAY)"]
},
{
"name": "requests",
"type": "count",
"objectType": "b3s__Worker_Proposal__c",
"selectionClause": ["b3s__Vendor_Invite__r.b3s__Vendor_Account__c IN :accountIds(b3s__Tab_Requests__c) AND b3s__Status__c = 'Requested'"]
}
]
invites counts new invites for the vendor on requests that have not ended. The Open Invitations dashboard count uses the same end date bound.requests counts Requested proposals awaiting the vendor's response (shown on the Requests tab). The older badge name proposals is still read as a fallback.Badges are refreshed on every tab activation alongside that tab's data. Adding a brand-new badge name to the array also needs the name wired into the tab template to render, so a new count typically pairs with a template change.
The Home tab renders the dashboard array as KPI tiles, loaded independently of the other tabs. Supported tile types are count, bar, pie and table; each has an objectType, a selectionClause, and type-specific keys. The shipped tiles:
| Type | Object | Shows |
|---|---|---|
count |
Contact |
My Workers (total roster) |
count |
b3s__Worker_Proposal__c |
Pending Proposals awaiting client review |
count |
b3s__Shift__c |
Upcoming Shifts (next 7 days) |
bar |
b3s__Shift__c |
Won shifts grouped by status |
pie |
Contact |
Workers grouped by status |
table |
b3s__Working_Pattern__c |
Upcoming placements (first 5) |
A count tile and the table tile from the sample:
{
"type": "count",
"objectType": "b3s__Shift__c",
"selectionClause": ["b3s__Contact__r.AccountId IN :accountIds(b3s__Tab_Schedule__c) AND b3s__Scheduled_Start_Time__c = NEXT_N_DAYS:7"],
"header": "Upcoming Shifts",
"footer": "next 7 days"
},
{
"type": "table",
"objectType": "b3s__Working_Pattern__c",
"selectionClause": ["b3s__Contact__r.AccountId IN :accountIds(b3s__Tab_Schedule__c) AND b3s__End__c >= TODAY"],
"fields": ["b3s__Contact__r.Name", "b3s__Job__r.Name", "b3s__Start__c"],
"orderBy": "b3s__Start__c",
"limit": 5,
"header": "Upcoming Placements"
}
Most tab data comes from this configuration's b3s__Loaders__c JSON array. Each entry defines a name, an object, a filter, and the fields to load. Queries execute server-side; the client only receives the resulting records. Every loader scopes to the vendor's Account. For the loader contract in general, see Data loaders.
| Loader | Object | Scoping filter |
|---|---|---|
invites |
b3s__Vendor_Invite__c |
b3s__Vendor_Account__c IN :accountIds AND (b3s__Shift__r.b3s__Scheduled_End_Time__c >= LAST_N_DAYS:90 OR b3s__Booking_Request__r.b3s__End__c >= LAST_N_DAYS:90). The 90 day margin keeps the parent invite details on recent My Proposals and Requests cards; older proposals show the invite as unknown. |
proposals |
b3s__Worker_Proposal__c |
b3s__Vendor_Invite__r.b3s__Vendor_Account__c IN :accountIds |
workers |
Contact |
AccountId IN :accountIds |
tickets |
b3s__Ticket__c |
b3s__Contact__r.AccountId IN :accountIds |
ticketTypes |
b3s__Ticket_Type__c |
Id != null (reference list for the credential picker) |
sharedWorkers |
b3s__Shared_Worker__c |
b3s__Contact__r.AccountId IN :accountIds(b3s__Tab_Workers__c) |
onboardingTemplates |
b3s__Onboarding_Template__c |
Active templates assigned (semi-join on b3s__Onboarding_Template_Assignment__c) to an account in :accountIds(b3s__Onboard_Workers__c) |
workerOnboardings |
b3s__Worker_Onboarding__c |
b3s__Contact__r.AccountId IN :accountIds |
requirements |
b3s__Certificate_Requirement__c |
semi-joins on the vendor's invited shifts and booking requests |
messages |
b3s__VMS_Message__c |
b3s__Vendor_Invite__r.b3s__Vendor_Account__c IN :accountIds |
clients |
b3s__VMS_Sharing_Group_Assignment__c |
apexFilter: "b3s.VmsWorkerSharePoolFilter" plus b3s__Role__c IN ('Client', 'Master Vendor') |
vendorVmsGroups |
b3s__VMS_Sharing_Group_Assignment__c |
b3s__Account__c IN :accountIds AND b3s__Role__c IN ('Vendor', 'Master Vendor') |
invoices |
b3s__Invoice__c |
b3s__Account__c IN :accountIds(b3s__Tab_Invoices__c) AND b3s__Kind__c = 'Self-Bill' AND b3s__Status__c IN ('Issued', 'Reverted') |
vendorExpensePlacements |
b3s__Working_Pattern__c |
Working patterns with a worker, converted from proposals on vendor invites belonging to accounts granting Submit_Timesheets__c. Options for the Timesheets expense placement picker; no shift approval or date-window restriction. |
invoiceLines |
b3s__Invoice_Line__c |
b3s__Invoice__c = :contextId plus the same account, kind and status conditions on the parent invoice; :contextId is pointed at the expanded invoice |
The clients loader is the one exception to clause-based scoping: the vendor's sharing pool (which client accounts it may share workers with) is a multi-level relationship that a single SOQL clause cannot express, so the loader names an apexFilter plugin that returns the eligible account set. The plugin name is trusted org configuration.
The client schedulable declares accountFieldPath: "b3s__Account__c", accountNameFieldPath: "b3s__Account__r.Name", roleFieldPath: "b3s__Role__c" and sharingGroupFieldPath: "b3s__Sharing_Group__c". Both clients and vendorVmsGroups must load the account, role and group fields; clients also loads the account name. The Workers tab uses these memberships to narrow the session's union pool to the selected worker's Account (worker.accountFieldPaths[0]). Missing membership configuration yields no sharing targets. Server checks also reject ineligible recipients on create, retarget and reactivation.
On upgrade, replace the old b3s.VmsVendorPoolFilter on clients with b3s.VmsWorkerSharePoolFilter; the former is now Client-to-Vendor invitation-only. Populate assignment roles before enabling the updated configuration. See sharing group migration.
Several feeds are not named loaders. The Schedule tab's shift and placement lists, the Timesheets tab's vendorShift and vendorExpense lists, and the Revenue tab's revenue lines, are date-ranged queries driven directly by those schedulable definitions (each carries its own selectionClause, date field paths and, for revenue, dateFilterMode: "overlap"). They are scoped by :accountIds(b3s__Tab_Schedule__c) and :accountIds(b3s__Tab_Revenue__c).
Every schedulable also declares accountFieldPaths, the path from its record to the vendor account (for example ["b3s__Vendor_Account__c"] on invite, ["AccountId"] on worker, ["b3s__Payee_Account__c"] on revenue). The portal uses them for its per record permission checks. Token and key reference: VMS access profiles and account memberships.
WFM_Vendor_Portal Component Configuration and its b3s__JSON__c.*FieldPath under schedulables.<name>, so you can point the portal at custom fields or objects with no code change.badges array (a new name also needs template wiring).dashboard array (types count, bar, pie, table).recordFormFields per schedulable (field, label override, input type, required, column span, loader-backed selects, and the file manager for credential evidence).canEdit / canDelete per schedulable, boolean or condition-based.title arrays per schedulable, including formatters and hide-if-null.b3s__Loaders__c field (fields loaded, filters, or an Apex filter). A brand-new loader also needs wiring into the per-tab refresh list.timezonePreference, firstDay, is24Hour.b3s__App_Translation__mdt records for the Vendor Portal app, merged at boot.contact-id, theme-type, hide-theme-switch, hide-current-user, hide-language-switch.The master-vendor and admin counterpart to this portal, where broadcasts originate and proposals are reviewed and sent to the client, is a native record-page component described in Native LWC components.