Vendor Portal app

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.

What it is and who uses it

Where it runs and how it is secured

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.

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.

Embedding a single tab

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.

How it is configured

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

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:

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"
        }
    ]
}

Condition-based editability

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" }
        ]
    }
}

Record forms and file evidence

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"
    }
]

Tabs

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.

Access profile gating

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.

Invites

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.

View schedule on booking invites

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.

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.

Server-paged Invites list

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.

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:

Requests

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.

My Proposals

Lists the vendor's own b3s__Worker_Proposal__c records (everything except Requested), with credential checking done client-side.

Workers

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.

Schedule

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.

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.

Timesheets

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.

  1. Pick a week in the date control (the current week by default). The tab loads the timesheetPlacement placements overlapping that week (dateFilterMode: "overlap", includeOpenEnded: true so placements with no end date count).
  2. Pick a worker from the list of distinct placement workers (contactFieldPath / contactNameFieldPath).
  3. The Timesheet Submission app boots for that worker, opening on the picked week. Shifts, breaks, expenses, forms and the submit action all come from the Timesheet Submission Component Configuration, exactly as the worker sees them. Picking another worker or week boots a fresh copy.

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.*.

Revenue

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.

Invoices

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.

Settings

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

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'"]
    }
]

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.

Home dashboard

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"
}

Loaders

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.

What an implementer configures

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.