The Shift Management Studio tab is where payroll and finance review the shifts and expenses that will be paid and billed. A typical Monday: open the tab (last week is already selected), click Needs approval or Exceptions, fix what is wrong, select the rest (shift-click for a range) and approve them in one go, press Save.
It answers four questions:
| Item | Value |
|---|---|
| Tab | Shift Management Studio |
| Apps | 3B WFM, 3B VMS |
| Component | shiftManagementStudio (also available in App Builder for app pages) |
| Permission set | WFM Admin (tab visibility, Apex class access, new fields) |
| Configuration | Component Configuration record with Type Shift Management Studio (optional) |
The component is internal only. Every query and save runs as the running user, so object, field and sharing permissions apply. A user without edit access to Approval Status cannot approve; a user who cannot create Breaks or Shift Tasks gets a disabled + Break or + Task, and edit / delete icons only show with edit / delete access.
| Control | Behaviour |
|---|---|
| Shifts / Expenses | Switches between the shift and expense lists. Header filters apply to both. |
| Period | Week arrows plus From and To dates side by side. Defaults to last week (configurable). Shifts are matched on the site local work date (b3s__Site_Work_Date__c: the scheduled start date, else the actual start date for an ad hoc shift), expenses on Date of Expense. The week starts on the Pay/Bill Setting's Week Start Day (the same week the overtime rules use) unless the configuration sets weekStartDay. |
| Search box | One box for Account, Job, Job Group, Site and Worker (and SBU in SBU mode). Type two or more characters, pick a result, and it becomes a pill such as Account: Acme College. Pills of the same kind are OR'ed, different kinds are AND'ed. In SBU mode the SBU filter (key sbu, b3s__SBU__c on shifts and expenses) is always offered, even when the configuration does not list it, and starts pre-selected with the user's own SBU assignments; remove the pills to see every unit. |
| Filter button | Opens the condition builder: field, operator, value, match all or any. Applied conditions show as pills; remove a pill to drop it. |
| Refresh | Re-runs the search. Any filter change also re-runs it automatically. |
Shifts: All, Needs approval, Exceptions, Approved, Rejected, Interpreted, Draft invoice, Invoiced, Late entries, Backlog, each with a count. Expenses: All, Needs approval, Approved, Rejected.
| View | Rule |
|---|---|
| Needs approval | Approval Status is not Approved, not interpreted, not invoiced or exported |
| Exceptions | Any enabled exception (see below) |
| Approved | Approved, not yet interpreted |
| Rejected | Approval Status Rejected |
| Interpreted | Pay/Bill Status Interpreted, not invoiced or exported |
| Draft invoice | A pay/bill staging line sits on an un-numbered (draft) invoice, and none on a numbered one |
| Invoiced | A staging line sits on a numbered invoice, or a line is exported (staging Status Processed) |
| Late entries | Dated before the period, not yet interpreted or invoiced, created or changed on or after the period start, and that change came after the shift's own week ended plus lateEntryGraceDays (default 2) |
| Backlog | Dated before the period and still to approve or interpret (not interpreted, not invoiced, not Cancelled) |
Late entries and Backlog ignore the period's date range: they look back from its start, so a shift worked three weeks ago and entered today shows up while you review last week. The header filters still apply. Late entries uses the last change date, which also moves when automation touches the shift (an approval, a re-price); for reports use the Is Late Entry checkbox stamped when the shift is created.
Results are ordered by worker name, then start time newest first, and paged (25, 50, 100 or 200 per page). Up to 50,000 shifts are listed per search; narrow the filters beyond that.
| Column | Top line | Bottom line |
|---|---|---|
| (checkbox) | Selects the row for bulk actions | |
| Shift | Shift name (opens record); a comment icon when the shift has a worker comment, internal comment, rejection reason, query comment, approval note or approver signature (hover for all of them) | Working pattern (opens record) |
| Worker | Contact name | PO Number: the shift's own, else the working pattern's. Editable (a text box) for users who can edit shifts, also on approved and payrolled rows |
| Job | Job | Site, then the shift's SBU when it has one |
| Rates | Total Pay (red) | Total Bill (green) |
| Rate Basis | Editable: Hourly, Full Day, Half Day. Blank is treated as Hourly. | |
| Breaks / Tasks | Each break (length) and shift task (job or site), with edit and delete icons | + Break and + Task add one |
| Shift Times | Scheduled (orange), editable | Actual (green), editable |
| Override Times | Billable start and end, editable for every rate basis | Reason |
| Payroll Status | Lifecycle badge (plus the approval status badge when an interpreted or invoiced shift is no longer Approved, for example rejected or un-approved after payroll), Bill on hold badge, multi-step approval indicator | Approve, Approve on behalf of client, Reject, Query, Resubmit or Unapprove; lock reason when locked or overridden |
All times (scheduled, actual, override and breaks) are shown in the shift's site timezone (b3s__Site_Timezone__c, else the org default), the same as the site local stamps and the pay/bill engine. When a site's offset differs from the user's at the shift's start, the row shows the site timezone abbreviation (for example EST) next to the scheduled times; hover it for the full timezone name.
Multi-step approval. When a shift's job or site has Timesheet Approvers with two steps, a line under the status badge shows where the chain is: Step 2 of 2 · 1st: Jane Doe, 7 Jul while it is open, just the first approver once it is approved or rejected. Hover it for the full date and whether the Job or Site pool applies. Approving such a shift here completes the chain in one go, at any step: the studio is the internal override when a client approver is unavailable. See Timesheet approvers.
Rates show the stored totals once a shift is interpreted. Before that they show a live estimate (for example ~£95.00) from the pay/bill engine, which writes nothing. If no rate applies the row shows why.
Scheduled, actual and override times use the same editor: start and end in the site timezone, an end at or before the start rolls to the next day.
| Times | Fields | How to start editing |
|---|---|---|
| Scheduled | b3s__Scheduled_Start_Time__c, b3s__Scheduled_End_Time__c |
Pencil next to the scheduled times, or + when the shift has none (an ad hoc shift with actual times only) |
| Actual | b3s__Actual_Start_Time__c, b3s__Actual_End_Time__c |
Pencil next to the actual times, or + when there are none |
| Override (billable) | b3s__Billable_Start_Time__c, b3s__Billable_End_Time__c |
Override |
A new window starts from the other one: adding actual times pre-fills the scheduled times and the other way round; Override pre-fills the scheduled times (actual times on an ad hoc shift).
Start date: hidden by default and the row's own date is used. Click the calendar icon to change it, for example an 11pm shift that really started at 1am the next day. The date stays visible while it differs from the row's date.
Clearing: the × on a scheduled or actual editor undoes the change. To remove saved times, empty both inputs and save. A shift must keep scheduled or actual times.
Times or Hours: every editor has a Times / Hours switch. Hours is a duration measured from a start:
| Times | Hours start from |
|---|---|
| Scheduled | The scheduled start, else the actual start, else 00:00 on the row's date |
| Actual | The actual start, else the scheduled start, else 00:00 on the row's date |
| Override (billable) | The scheduled start, else the actual start (after any edits in the same save) |
The editor shows the start it will use (for example = 7h from 09:00). The × on an override clears it.
Override reason: optional, unless the shift's Job or Account has Require Reason for Billable Override (see Exceptions). The placeholder says which.
+ Break and + Task open a form headed by the shift it belongs to (worker, date, job, site, account and the scheduled, actual and billable times in the site timezone). New records start on the shift's absolute start (actual, else scheduled): a break defaults to 30 minutes from the start, a task to the whole shift with the shift's job and site. The pencil edits a record and the bin deletes it (with confirmation). Breaks and tasks save straight away, not with Save, and are disabled on locked rows.
The fields on both forms come from the configuration (break.recordFormFields, task.recordFormFields, see Configuration). Times are one start–end picker in the site timezone (an end at or before the start is the next day). While you type, the form checks the times:
"allowOverlap": true (then it only warns)."enforceWithin": true (then it blocks). The validation rule below still applies on save.Validation rule and field errors from Salesforce show on the form next to the field (or at the top), and the form stays open.
Manual breaks are created as regular Break records with Is Auto Created off, so the break engine leaves them alone. The validation rule Break Within Shift Times rejects a manual break that starts or ends outside the shift's Absolute Start and End Time. Absolute times are Billable (override) when set, else Actual, else Scheduled, so once finance sets an override window, manual breaks must sit inside it. Auto created breaks are exempt, and the end check is skipped while a shift is in progress (actual start, no actual end) so a clock break can run past the scheduled end.
| Badge | Meaning | Editable |
|---|---|---|
| Not submitted | No Approval Status yet | Yes |
| Submitted, Queried, Rejected | Approval Status | Yes |
| Approved | Approved by the client or internally | Status only (Unapprove sets it back to Submitted) |
| Failed | Interpretation failed | Status only |
| Interpreted | Pay/Bill Status Interpreted (payrolled) | Only with the Edit Payrolled Shifts permission |
| Draft invoice | Lines on an un-numbered (draft) invoice | Only with Edit Invoiced Shifts |
| Invoiced | Lines on a numbered invoice or exported to payroll | Only with Edit Posted Shifts |
The same lock applies on every save path: this studio, Timesheet Approval, the Client Shift Manager, worker portals, Flows, data loads and the API. The server's lock state names differ from the badges: a draft invoice is lock state Invoiced, a numbered invoice or export is lock state Posted. Lock states, highest first:
| Lock state | When | Custom permission to override |
|---|---|---|
| Posted (badge Invoiced) | A staging line is on a numbered invoice, or a line is exported (staging Status = Processed) | Edit Posted Shifts (permission set WFM Finance Override) |
| Invoiced (badge Draft invoice) | A staging line is on a draft (un-numbered) invoice | Edit Invoiced Shifts (in WFM Admin) |
| Payrolled (badge Interpreted) | Pay/Bill Status = Interpreted | Edit Payrolled Shifts (in WFM Admin) |
On a locked shift, fields listed in the Pay/Bill Setting field Editable After Payroll Fields stay editable for everyone. The package default is Comments, Internal Comments, Rejection Reason, Query Comment, PO Number, Bill Hold, Bill Hold Reason and the clock exception authorisation fields (Clock In/Out Authorised, Authorised By, Exception Comments). Every other change, including Approval Status and Status, needs the state's permission. Portal sessions (guest users on Timesheet Approval, the Client Shift Manager, the Clock, Timesheet Submission and kiosks) never override, whatever permissions the site user holds.
When a row is locked for you, a lock note under the badge gives the state and the permission you would need, and the row is read only. If you hold the permission the row stays editable and the note says so (open lock icon, for example "Draft invoice: you hold Edit Invoiced Shifts, so your changes are saved"), so an override is never silent. The row data carries lockState (Payrolled, Invoiced or Posted) and canOverride for custom tooling.
Example Editable After Payroll Fields value on a Pay/Bill Setting record:
[
"b3s__Comments__c",
"b3s__Internal_Comments__c",
"b3s__Rejection_Reason__c",
"b3s__Query_Comment__c",
"b3s__PO_Number__c"
]
When several Pay/Bill Setting records define the list, a field is editable only if every list names it. Unknown field names are ignored at save time and reported by invoice configuration validation.
There is no pay period cut-off. A worker can still submit a shift from weeks ago; once it is approved it flows into the next interpretation run.
Every row has a checkbox, the header checkbox selects the whole page. Selection works like Gmail: click one checkbox, hold Shift and click another, and every row in between takes the same state (selected or cleared). Selection is per page and clears when the page, filters or view change.
With rows selected a bar shows the count and the bulk actions:
| Action | Applies to |
|---|---|
| Approve, Reject, Query | Selected rows not yet Approved |
| Approve on behalf of client… | Selected rows not yet Approved whose Job or Account requires client approval (shifts only) |
| Resubmit | Selected Rejected, Queried or never submitted rows (back to Submitted) |
| Unapprove | Selected Approved rows (back to Submitted) |
| Hold bill…, Release bill | Selected shifts not on an invoice you cannot override; Release only rows on hold (shifts only, needs edit access to Bill Hold) |
| Set times… | Selected rows that are not locked (shifts only) |
| Unprocess… | Selected Interpreted shifts (shifts only, needs edit access to shifts) |
| Clear selection |
Locked rows and rows the action does not apply to are skipped, and a message says how many. The same actions sit on each row as icons. Each action can open one form for all its rows, with the fields from configuration; the values are applied to every row:
| Action | Sets Approval Status | Form (config key, default fields) |
|---|---|---|
| Approve | Approved | approvalFields, none |
| Approve on behalf of client | Approved, Approval Source Internal on behalf of Client |
onBehalfFields, Approval Note (always on the form and required) |
| Reject | Rejected | rejectionFields, Rejection Reason |
| Query | Queried | queryFields, Query Comment |
| Resubmit | Submitted, Rejection Reason cleared | resubmitFields, Internal Comments (expenses: none) |
| Unapprove | Submitted | unapproveFields, Internal Comments (expenses: none) |
A rejected or queried shift goes back to the worker exactly as it does from Timesheet Approval. Resubmit is how an agency or master vendor hands a corrected shift back to the client: fix the times, Resubmit with a note, and the client sees it as Submitted again; once the client approves, the next pay/bill run picks it up with no second internal approval. The note goes to Internal Comments, so the worker's own comment is kept. Timesheet Approval stores the approver signature in Internal Comments too, so an Unapprove note replaces the signature of the approval it undoes.
Approve on behalf of client is for a client who agreed outside the portal (by phone or email). It is offered only when the shift's Job or Account requires client approval, needs an Approval Note (who agreed, and how), and stamps Approval Source Internal on behalf of Client, so a report on Approval Source separates client, on-behalf and internal-only approvals. A plain Approve on such a shift is flagged by the Approved internally exception.
Hold bill approves for pay while holding the client bill: set it on an approved or interpreted shift (optional reason), and the shift is interpreted and its Pay lines export as usual, but its Bill and Supplier lines stay out of invoicing until Release bill. The next invoice generate after the release bills it. A shift already on an invoice cannot be held (that is a dispute: raise a credit) unless you hold the lock state's permission. See Invoicing.
Unprocess puts the selected interpreted shifts back to Pending for the next pay/bill run: their pay and bill lines are deleted (with any draft invoice they sit on), the totals and trace are cleared. The worker's affected shifts go too: other shifts on the same day and, when the policy has weekly overtime, the later shifts of that week, so overtime and day charges re-price in order. A confirmation shows how many extra shifts that is before anything changes. A selected shift with lines on a numbered invoice or exported to payroll is refused (edit it instead; the change is corrected through the ledger); an affected shift in that state is left as is. Unprocessing needs Edit Payrolled Shifts, or Edit Invoiced Shifts when the lines sit on a draft invoice. See Pay and bill engine.
Set times copies scheduled, actual and/or override times to every selected row. It opens pre-filled from the first selected row; tick the windows to apply (editing one ticks it). Only the times are copied: each row keeps its own date, and Hours are measured from each row's own start (rules above). Override times apply to every rate basis, with the optional reason.
Nothing is written until Save. Changed rows are highlighted and the button shows the count. Saves are row by row: a row that fails shows its error inline and the others still save. Changing page, filters or view with unsaved changes asks first.
Columns: Expense and working pattern, worker, job and site, category, date, amount (with the expense's Pay/Bill Status under it), Treatment, Bill amount, files (preview), Payroll Status. Treatment (Payable and Billable, Payable, Billable) and Bill amount are edited in the row and saved with Save while the expense is not yet approved or interpreted; a blank bill amount falls back to the total. Selection and the bulk Approve, Reject, Query, Resubmit and Unapprove work as for shifts; the comment icon shows the worker's comment, rejection reason and query comment. Approved expenses are paid and billed by the Pay/Bill Runner (see Pay and bill engine, Expenses). When the expense's placement job or site has two-step Timesheet Approvers, the same multi-step line as on shifts shows under the status badge, and an approval here completes the chain in one go. The expense view has no exceptions filter, so there is no awaiting-final-approval exception for expenses (see Timesheet approvers, Expenses).
Exceptions depend on what each client expects. Set the expectations on the Account and override them per Job:
| Account field (checkbox) | Job field (Yes / No / blank = use Account) | Exception raised |
|---|---|---|
| Requires Client Approval | Requires Client Approval | Shift ended and is not Approved |
| Requires Worker Submission | Requires Worker Submission | Shift ended and has no Approval Status |
| Requires Actual Times | Requires Actual Times | Shift ended, not Cancelled, and an actual time is missing |
| Requires PO Number | Requires PO Number | Neither the shift nor its working pattern has a PO Number |
| Requires Vendor Submission | none (Account only) | The shift is vendor-supplied (Supplier Account set), ended and has no Approval Status: the supplying vendor has not submitted it from the Vendor Portal Timesheets tab |
| Require Reason for Billable Override | Require Reason for Billable Override | Not an exception: an override time change cannot be saved without an Override Reason |
The resolved values are read-only formula checkboxes on Shift with the same API names (b3s__Requires_Client_Approval__c and so on), usable in reports and list views.
Exceptions that need no setup:
| Exception | Rule |
|---|---|
| Actual times differ from scheduled | Absolute value of b3s__Actual_Variance_Minutes__c above oddActualsMinutes (default 30) |
| Pay / bill interpretation failed | Pay/Bill Status Failed |
| Clock exception not authorised | A clock in or out exception reason is set and not authorised |
| Approved internally, client approval expected | The shift requires client approval and was approved with Approval Source Internal (not by the client, not on its behalf) |
| Awaiting final (step 2) client approval | Multi-step approval: step 1 is done and the shift waits, Submitted, at Approval Step 2. Needs read access to the five approval chain fields (see Timesheet approvers) |
Example: a UK education client where workers do not submit time and actual times are not recorded. Leave Requires Worker Submission and Requires Actual Times off on the account, turn on Requires Client Approval, and the studio only flags missing client approvals.
Shift fields stamped automatically on every Approval Status change, from any screen:
| Field | Value |
|---|---|
Approval Source (b3s__Approval_Source__c) |
Internal when an internal user approved, Client when a portal or community user approved, Internal on behalf of Client for the studio's on-behalf action (only an internal user can set it) |
Approval Note (b3s__Approval_Note__c) |
Why the shift was approved this way (required for on-behalf approvals) |
Approved By (b3s__Approved_By__c) |
The internal user who approved; blank for client approvals |
Approved By Contact (b3s__Approved_By_Contact__c) |
The portal contact who approved (client approvals) |
Approved Date (b3s__Approved_Date__c) |
When the shift was approved |
| Submitted Date, Submitted By Contact | When and by which portal contact the shift was last submitted |
| Rejected Date, Rejected By, Rejected By Contact | When and by whom (internal user or portal contact) the shift was last rejected |
| First Approved By Contact, First Approved Date | Multi-step approval only: who completed step 1 and when; cleared when the chain restarts (see Timesheet approvers) |
Client Approval Timestamp (b3s__Client_Approval_Timestamp__c) |
Deprecated. Equals Approved Date for client approvals, kept for existing reports |
The approval fields (and the Approval Note) are cleared when the status changes away from Approved; submission and rejection stamps keep the last occurrence. Approval Status, actual and billable times, Pay/Bill Status, Rate Basis and Supplier Account are history tracked, so every rejection, query and unapproval appears in Shift History.
Expenses carry the same Approval Source, Approved By and Approved Date stamps. An approved expense only changes status (unapprove or reject) and its Rejection Reason or Query Comment unless the user holds Edit Payrolled Shifts; approved expenses cannot be deleted without it. Once interpreted, an expense is locked like a payrolled shift (approval status included; Edit Invoiced Shifts / Edit Posted Shifts once its lines are on a draft or numbered invoice or exported); a permitted change releases its lines and puts it back to Pending for the next run, and it cannot be deleted.
The rejection reason has its own field: Rejection Reason (b3s__Rejection_Reason__c) on Shift and Expense, and Query Comment (b3s__Query_Comment__c) for queries. The worker's own comment (b3s__Comments__c on Shift, b3s__Submitter_Comments__c on Expense) is never overwritten by a rejection.
b3s__PO_Number__c) lives on Shift, Working Pattern and Booking Request. When a VMS proposal is approved, the booking request's PO number is copied to the placement working pattern, and the shift generator stamps the pattern's PO (else the booking request's) on every generated shift. VMS demand child shifts copy the demand's PO. Ad hoc shifts take one in the studio or on the Client Shift Manager request form. The missing PO exception reads the shift's PO, else the working pattern's.The studio works without configuration. To change it, create one Component Configuration record (b3s__Component_Configuration__mdt) with Type Shift Management Studio and the JSON below. Keys you include override the defaults; keys you leave out keep them. Only one record of this type is allowed per org.
{
"defaultPeriod": "lastWeek",
"pageSizes": [25, 50, 100, 200],
"defaultPageSize": 50,
"lateEntryGraceDays": 2,
"headerFilters": [
{
"key": "account",
"label": "Account",
"shiftPath": "b3s__Work_Job__r.b3s__Account__c",
"expensePath": "b3s__Working_Pattern__r.b3s__Job__r.b3s__Account__c"
},
{
"key": "job",
"label": "Job",
"shiftPath": "b3s__Work_Job__c",
"expensePath": "b3s__Working_Pattern__r.b3s__Job__c"
},
{
"key": "jobGroup",
"label": "Job Group",
"shiftPath": "b3s__Work_Job__r.b3s__Job_Group__c",
"expensePath": "b3s__Working_Pattern__r.b3s__Job__r.b3s__Job_Group__c"
},
{
"key": "site",
"label": "Site",
"shiftPath": "b3s__Work_Site__c",
"expensePath": "b3s__Working_Pattern__r.b3s__Site__c"
},
{
"key": "worker",
"label": "Worker",
"shiftPath": "b3s__Contact__c",
"expensePath": "b3s__Contact__c"
}
],
"shiftFilters": [
{ "key": "approvalStatus", "fieldPath": "b3s__Approval_Status__c" },
{
"key": "vmsCancellationReason",
"fieldPath": "b3s__VMS_Cancellation_Reason__c"
},
{ "key": "payBillStatus", "fieldPath": "b3s__Pay_Bill_Status__c" },
{ "key": "status", "fieldPath": "b3s__Status__c" },
{
"key": "cancellationReason",
"fieldPath": "b3s__Cancellation_Reason__c"
},
{ "key": "vms", "fieldPath": "b3s__VMS__c" }
],
"expenseFilters": [
{ "key": "approvalStatus", "fieldPath": "b3s__Approval_Status__c" },
{ "key": "category", "fieldPath": "b3s__Category__c" }
],
"shift": {
"approvalFields": [],
"rejectionFields": ["b3s__Rejection_Reason__c"],
"queryFields": ["b3s__Query_Comment__c"],
"unapproveFields": ["b3s__Internal_Comments__c"],
"resubmitFields": ["b3s__Internal_Comments__c"],
"onBehalfFields": ["b3s__Approval_Note__c"]
},
"expense": {
"approvalFields": [],
"rejectionFields": ["b3s__Rejection_Reason__c"],
"queryFields": ["b3s__Query_Comment__c"],
"unapproveFields": [],
"resubmitFields": []
},
"break": {
"recordFormFields": [
{ "field": "b3s__Type__c", "type": "field-select" },
{
"field": "b3s__Start__c:b3s__End__c",
"type": "field-time-range-selector",
"labelOverride": "Break times",
"required": true
},
{ "field": "b3s__Is_Paid__c", "type": "field-checkbox" },
{ "field": "b3s__Comments__c", "type": "field-text-area" }
]
},
"task": {
"recordFormFields": [
{ "field": "b3s__Work_Job__c", "type": "field-lookup" },
{ "field": "b3s__Work_Site__c", "type": "field-lookup" },
{
"field": "b3s__Start__c:b3s__End__c",
"type": "field-time-range-selector",
"labelOverride": "Task times",
"required": true
}
]
},
"exceptions": {
"approvalMissing": true,
"notSubmitted": true,
"vendorNotSubmitted": true,
"missingActuals": true,
"oddActuals": true,
"oddActualsMinutes": 30,
"payBillFailed": true,
"missingPoNumber": true,
"clockNotAuthorised": true,
"internalOnlyApproval": true,
"awaitingFinalApproval": true
}
}
| Key | Notes |
|---|---|
defaultPeriod |
lastWeek or thisWeek |
weekStartDay |
Monday to Sunday. Leave it out to use the Pay/Bill Setting Week Start Day (when every setting that sets one agrees), else Monday. |
lateEntryGraceDays |
Days after a shift's week ends before a new entry or change counts as late (default 2) |
headerFilters |
Lookups offered by the search box. shiftPath must end on a lookup reachable from Shift; expensePath from Expense (omit it and the filter does not narrow expenses). key must be unique. |
shiftFilters, expenseFilters |
Fields offered in the condition builder. The field type is read from Salesforce, so you never declare it. label is optional (defaults to the field label). |
approvalFields, rejectionFields, queryFields, unapproveFields, resubmitFields, onBehalfFields |
Field API names shown on the form of that action. Do not list Approval Status itself. A list left out of a shift or expense object keeps its default (approvalFields and rejectionFields default to none). onBehalfFields always includes Approval Note. |
break.recordFormFields, task.recordFormFields |
The break and shift task forms, in the same shape as the app configuration recordFormFields (see below). Replaced as a whole when set. |
exceptions |
Turn each exception on or off; oddActualsMinutes sets the variance threshold. |
Each entry of recordFormFields:
| Key | Notes |
|---|---|
field |
Field API name on Break / Shift Task. A time range names two Date/Time fields as Start:End. |
type |
field-text, field-text-area, field-number-input, field-checkbox, field-select, field-date-input, field-date-time, field-lookup (alias field-record-select), field-time-range-selector. Leave it out to pick one from the field type. |
label / labelOverride |
Defaults to the field label. |
tooltip |
Help text; defaults to the field's inline help. |
required, disabled, showIf |
true / false or { "condition": { "allOrSome": "all", "selectors": [...] } } with the app configuration operators (equals, notEquals, in, notIn, isNull, contains, startsWith, lessThan, greaterThan, lessOrEqual, greaterOrEqual). Selectors read the form's current values by API name, and the shift as $shift.<property> (for example $shift.approvalStatus, $shift.jobId, $shift.rateBasis). A field hidden by showIf is not saved. |
hidden |
true saves the value (default) without showing the field. |
default |
Value for new records when the studio sets none. |
options |
[{ "label", "value" }] for a field-select, instead of the picklist values. |
props |
Lookup: objectApiName, placeholder, matchingInfo, displayInfo, filter, messageWhenBadInput, variant (passed to lightning-record-picker). Time range: hideDate, allowOverlap, enforceWithin. Any field: placeholder. |
Required comes from the config or from Salesforce (a field required on the object is always required). Fields the user cannot see are left out; fields they cannot edit are read only.
Example: the task's job lookup only offers jobs linked to an account, and is read only once the shift is approved.
{
"field": "b3s__Work_Job__c",
"type": "field-lookup",
"disabled": {
"condition": {
"allOrSome": "all",
"selectors": [
{
"field": "$shift.approvalStatus",
"operator": "equals",
"value": "Approved"
}
]
}
},
"props": {
"placeholder": "Search jobs…",
"matchingInfo": { "primaryField": { "fieldPath": "Name" } },
"filter": {
"criteria": [
{
"fieldPath": "b3s__Account__c",
"operator": "ne",
"value": null
}
]
}
}
}
matchingInfo, displayInfo and filter follow the lightning-record-picker documentation.
Operators offered by field type:
| Field type | Operators |
|---|---|
| Checkbox | equals |
| Picklist | is any of, is none of |
| Text | equals, contains, does not contain |
| Date, date/time, number | equals, before / less than, after / greater than |
| Lookup | equals, not equals |
| All | is blank, is not blank |
"Is none of" and "does not contain" also match blank values. Date/time conditions compare whole days in the user's timezone.
A malformed record or an unknown field path stops the studio with an error that names the record and the field, so mistakes are found on first load.
| Symptom | Cause |
|---|---|
| "Duplicate ... records" on load | More than one Component Configuration with Type Shift Management Studio |
| A shift is missing | It is outside the period (site local start date), filtered out, or not shared with the user |
| Estimate shows an error | No rate card matches the shift, or the engine rejected it; check the shift in the Rate Card Studio's try-a-shift panel |
| Approve buttons disabled | The row is interpreted or invoiced, or the user lacks edit access to Approval Status |
| No Approve on behalf of client | The shift's Job and Account do not require client approval |
| A held shift was still invoiced | The invoice configuration or Pay/Bill Setting has its own eligibility rules without the Bill Hold condition; add {"fieldPath":"b3s__Shift__r.b3s__Bill_Hold__c","operator":"in","values":[false]} |
| "The break must be within the shift's start and end times." | A manual break starts or ends outside the shift's Absolute Start / End Time; fix the break or the shift times first |
| Override needs a reason | The Job (Yes) or Account has Require Reason for Billable Override |
| No exceptions for a client | The Account and Job expectation flags are off |