important When migrating from 1GP to 2GP package, you will need to re-authroize the application with https://auth.3b4sf.com
- Removal of the Event Alerts object and its replacement with Event Alerts V2
Deprecated
This version brings the release of Working Patterns
This version de-couples the WFM app from Onboarding, CLM and Forms. Now, only the 3B Portals app is a dependency for the WFM package.
You must remove any scheduler decorations that indicate count of shift invitations from the shift scheduler as we are rolling out a native way to render these.
[NO TASK] - Fixed a bug introduced in the previous version of this app where copy/cut & paste could position the pasted shift in the wrong cell
Start of the conversion process of Scheduling/App Loaders
What changed
Loaders can now be defined using a new JSON field (b3s__JSON__c) instead of writing JavaScript in the Javascript Code field (b3s__Javascript_Code__c).
The JSON format is declarative (no code), which is required for upcoming background/compliance features.
Do I have to do anything?
No — this is backward compatible. Existing loaders that use the Javascript Code field continue to work exactly as before. You will, however, see this warning in the browser console for any loader still using the old field:
Loader is defined via the legacy "b3s\_Javascript_Code__c" field. This is deprecated and will be removed in a future version — migrate it to the declarative "b3s__JSON__c" field._
We recommend migrating loaders to the new JSON field at your convenience. The Javascript Code field will be removed in a future release.
Which field wins?
For each loader record, the app uses:
Javascript Code if it is populated (legacy behavior + deprecation warning), otherwiseJSON.➡️ When you migrate a record, clear the Javascript Code field (set it to blank) so the new JSON field takes effect.
How to migrate a loader
Old format (Javascript Code field)
{
name: "contacts",
objectName: "Contact",
filterRecordsBy: function () {
return "Id IN (SELECT b3o__Candidate__c FROM b3o__Placement__c WHERE b3o__Job__r.b3o__Client_Account__c = {0})"
},
groupRecordsBy: "Id",
fieldToLoad: ['Name', 'Email'],
filteringItems: function () {
return [`'${contextRecordId}'`]
}
}
New format (JSON field)
{
"name": "contacts",
"objectName": "Contact",
"filterRecordsBy": "Id IN (SELECT b3o__Candidate__c FROM b3o__Placement__c WHERE b3o__Job__r.b3o__Client_Account__c = :contextId)",
"groupRecordsBy": "Id",
"fieldToLoad": ["Name", "Email"]
}
Key differences:
Old (JS)
New (JSON)
filterRecordsBy is a function returning a string
filterRecordsBy is a string (or an array of strings for multiple filters)
filteringItems supplies values for {0}, {1} …
Removed. Use named placeholders directly in the filter (see below)
'${contextRecordId}' / {0}
:contextId
JSON field reference
Property
Required
Description
name
✅
Unique loader name used by the app to read the loaded records.
objectName
✅
API name of the object to query (e.g. Contact, b3s__Certificate_Requirement__c).
filterRecordsBy
✅
A SOQL WHERE-clause string, or an array of clause strings (each runs as a separate query; results are merged and de-duplicated by Id).
fieldToLoad
—
Array of field API names to retrieve.
groupRecordsBy
—
Field API name to group results by. Use * to combine multiple fields into one key (e.g. b3s__Account__c*b3s__Site__c).
label
—
Friendly name used in error messages.
Available placeholders (merge fields)
Use these directly inside filterRecordsBy. They are automatically replaced and correctly quoted/escaped for SOQL:
Placeholder
Resolves to
:contextId
The record the app is opened on (e.g. the Account/Job record id)
:contactUserId
The current contact/user id
:userId
Same as :contactUserId
:contextRecord.<FieldApiName>
A field value from the context record (e.g. :contextRecord.b3s__Region__c)
:contextUser.<FieldApiName>
A field value from the context user record
:contextStart
Start of the calendar range currently being viewed
:contextEnd
End of the calendar range currently being viewed
:contextDate
The context date
Examples
"filterRecordsBy": "Id = :contactUserId"
"filterRecordsBy": "b3s__Account__c = :contextId AND b3s__Active__c = true"
"filterRecordsBy": [
"b3s__Account__c = :contextId",
"b3s__Region__c = :contextRecord.b3s__Region__c"
]
Note: Do not wrap placeholders in quotes yourself —
Id = :contactUserIdis correct, notId = ':contactUserId'. The system adds quotes automatically where needed.
File management changes
This task delivers the following:
{
"recordFormFields": \[
{
"field": "",
"labelOverride": "Upload",
"translationKey": "fileUpload",
"type": "field-file-upload",
"props": {
"placeholder": "Upload File",
"maxFileSize": 6000000,
"multiple": true,
"source": "user",
"accept": "image/\*"
},
"required": false,
"disabled": false
}
\]
}
We are changing the way file uploads are handled - previously, we were waiting for the user to submit a form to upload the selected files. Now, we are uploading the file immediately upon selection.
We have added a new file management component for use with recordFormFields which allows end users to upload , download and delete files attached to the context record. To surface the component, you need to add the following to your app configuration:
//App (clock, submission, approval, client scheduler)
{
"recordFormFields": \[
{
"label": "Record Files!",
"translationKey": "record\_files",
"type": "record-files-manager",
"canDelete": {
"condition": {
"allOrSome": "some",
"selectors": \[
{
"field": "b3s\_\_Type\_\_c",
"operator": "equals",
"value": "Day"
}
\]
}
},
"canCreate": {
"condition": {
"allOrSome": "some",
"selectors": \[
{
"field": "b3s\_\_Type\_\_c",
"operator": "equals",
"value": "Day"
}
\]
}
}
}
\]
}
//Shift scheduler
{
"schedulables":{
"shift": {
"recordFormFields": \[
{
"label":"Files",
"type": "record-files-manager",
"columns":"col-span-2",
"views":{
"shiftView":true,
"bulkEditView":false,
"blukCreateView":false
},
"canDelete": {
"condition": {
"allOrSome": "some",
"selectors": \[
{
"field": "b3s\_\_Type\_\_c",
"operator": "equals",
"value": "Day"
}
\]
}
},
"canCreate": {
"condition": {
"allOrSome": "some",
"selectors": \[
{
"field": "b3s\_\_Type\_\_c",
"operator": "equals",
"value": "Day"
}
\]
}
}
}
\]
}
}
}
This is a break down of the properties in available on the record-files-manager:
[NO DEV TASK] - In some edge cases, the platform could throw an error like "Developer script exception from XXXXX : b3s.Shift : b3s.Shift: execution of BeforeDelete". This was resolved.
[NO DEV TASK] - Added "clear all" button to scheduling filters and fixed a bug which didn't correctly re-size the scheduling swim-lanes after the filters side panel was closed.
Add support for contextUser.Email
We can now use the contextUser.FirstName, contextUser.LastName, contextUser.Email and contextUser.AccountId in the navigationItems array in the clock app.
WFM - Reverse Matching in Schedule
We can now invite a candidate to a reverse match shift.
Fix no records when filter returns no data, hides filter button
We fixed an issue where the filter button would be hidden without any exception message when a filter applied didn't return a value within the clock, ts submission, ts approval and client scheduler apps. Now, if the filter doesn't return any values, we will show a message on page and retain the button on screen.
Add special dates support
You can now use the Special Dates metadata to define "Special Dates" - these are dates that will be highlighted in the scheduler. Useful to mark holidays and other special days.
Add a Javascript Code to the Special Date custom metadata, returning either a string or null. If you return a string, we will highlight the date and add the string to the header of that column in the Scheduler.
const tomorrow \= new Date();
tomorrow.setDate(tomorrow.getDate() + 1);
return (
date.getDate() \=== tomorrow.getDate() &&
date.getMonth() \=== tomorrow.getMonth() &&
date.getFullYear() \=== tomorrow.getFullYear()
) ? 'Tomorrow' : null;
Support repeating merge tags in WFM
Previously, if you used a merge tag multiple times in the same string (e.g. :contextDate or :contextUser.Email), then we would only replace the first instance. This is now resolved and we will replace all matching instances.
You can now add “quickActions” configuration to any object in the Clock app as well as the TS Submission, TS Approval, Client Shift Manager and even Scheduler. Here’s a clock app configuration:
Quick actions "kebab" menu in the mobile app (the example shows against the invitation record)
{
"timezonePreference":"client",
"navMenuItems":\[
\],
"schedulables":{
"expense":{
"objectType":"b3s\_\_Expense\_\_c",
"quickActions":\[
\]
},
"request":{
"objectType":"b3s\_\_Employee\_Request\_\_c",
"quickActions":\[
\]
},
"geoTag":{
"objectType":"b3s\_\_Geo\_Tag\_\_c",
"quickActions":\[
\]
},
"invitation":{
"objectType":"b3s\_\_Invitation\_\_c",
"quickActions":\[
{
"label":"Accept",
"icon":"<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor' class='icon icon-tabler icons-tabler-filled icon-tabler-thumb-up'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M13 3a3 3 0 0 1 2.995 2.824l.005 .176v4h2a3 3 0 0 1 2.98 2.65l.015 .174l.005 .176l-.02 .196l-1.006 5.032c-.381 1.626 -1.502 2.796 -2.81 2.78l-.164 -.008h-8a1 1 0 0 1 -.993 -.883l-.007 -.117l.001 -9.536a1 1 0 0 1 .5 -.865a2.998 2.998 0 0 0 1.492 -2.397l.007 -.202v-1a3 3 0 0 1 3 -3z' /> <path d='M5 10a1 1 0 0 1 .993 .883l.007 .117v9a1 1 0 0 1 -.883 .993l-.117 .007h-1a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-7a2 2 0 0 1 1.85 -1.995l.15 -.005h1z' /> </svg>",
"successMessage":"Shift accepted",
"errorMessage":"Failed to accept shift. Error: {0}",
"confirmationMessage":"Are you sure?",
"visibleIf":{
"condition":{
"allOrSome":"all",
"selectors":\[
{
"field":"b3s\_\_Status\_\_c",
"operator":"notequals",
"value":"Accepted"
}
\]
}
},
"updateFields":\[
{
"field":"b3s\_\_Status\_\_c",
"value":"Accepted"
}
\]
},
{
"label":"Reject",
"icon":"<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor' class='icon icon-tabler icons-tabler-filled icon-tabler-thumb-down'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M13 21.008a3 3 0 0 0 2.995 -2.823l.005 -.177v-4h2a3 3 0 0 0 2.98 -2.65l.015 -.173l.005 -.177l-.02 -.196l-1.006 -5.032c-.381 -1.625 -1.502 -2.796 -2.81 -2.78l-.164 .008h-8a1 1 0 0 0 -.993 .884l-.007 .116l.001 9.536a1 1 0 0 0 .5 .866a2.998 2.998 0 0 1 1.492 2.396l.007 .202v1a3 3 0 0 0 3 3z' /> <path d='M5 14.008a1 1 0 0 0 .993 -.883l.007 -.117v-9a1 1 0 0 0 -.883 -.993l-.117 -.007h-1a2 2 0 0 0 -1.995 1.852l-.005 .15v7a2 2 0 0 0 1.85 1.994l.15 .005h1z' /> </svg>",
"successMessage":"Shift rejected",
"errorMessage":"Failed to reject shift. Error: {0}",
"visibleIf":{
"condition":{
"allOrSome":"all",
"selectors":\[
{
"field":"b3s\_\_Status\_\_c",
"operator":"notequals",
"value":"Rejected"
}
\]
}
},
"updateFields":\[
{
"field":"b3s\_\_Status\_\_c",
"value":"Rejected"
}
\]
}
\]
},
"shift":{
"objectType":"b3s\_\_Shift\_\_c",
"quickActions":\[
{
"label":"Confirm",
"icon":"<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor' class='icon icon-tabler icons-tabler-filled icon-tabler-thumb-up'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M13 3a3 3 0 0 1 2.995 2.824l.005 .176v4h2a3 3 0 0 1 2.98 2.65l.015 .174l.005 .176l-.02 .196l-1.006 5.032c-.381 1.626 -1.502 2.796 -2.81 2.78l-.164 -.008h-8a1 1 0 0 1 -.993 -.883l-.007 -.117l.001 -9.536a1 1 0 0 1 .5 -.865a2.998 2.998 0 0 0 1.492 -2.397l.007 -.202v-1a3 3 0 0 1 3 -3z' /> <path d='M5 10a1 1 0 0 1 .993 .883l.007 .117v9a1 1 0 0 1 -.883 .993l-.117 .007h-1a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-7a2 2 0 0 1 1.85 -1.995l.15 -.005h1z' /> </svg>",
"successMessage":"Shift confirmed",
"errorMessage":"Failed to confirm shift. Error: {0}",
"confirmationMessage":"Are you sure?",
"visibleIf":{
"condition":{
"allOrSome":"all",
"selectors":\[
{
"field":"b3s\_\_Status\_\_c",
"operator":"notequals",
"value":"Confirmed"
}
\]
}
},
"updateFields":\[
{
"field":"b3s\_\_Status\_\_c",
"value":"Confirmed"
}
\]
},
{
"label":"Cancel",
"icon":"<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='icon icon-tabler icons-tabler-outline icon-tabler-cancel'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0' /> <path d='M18.364 5.636l-12.728 12.728' /> </svg>",
"successMessage":"Shift cancelled",
"errorMessage":"Failed to cancel shift. Error: {0}",
"visibleIf":{
"condition":{
"allOrSome":"all",
"selectors":\[
{
"field":"b3s\_\_Status\_\_c",
"operator":"notequals",
"value":"Cancelled"
}
\]
}
},
"updateFields":\[
{
"field":"b3s\_\_Status\_\_c",
"value":"Cancelled"
}
\]
},
{
"label":"Request shift swap",
"icon":"<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='icon icon-tabler icons-tabler-outline icon-tabler-replace-user'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M21 11v-3c0 -.53 -.211 -1.039 -.586 -1.414c-.375 -.375 -.884 -.586 -1.414 -.586h-6m0 0l3 3m-3 -3l3 -3' /> <path d='M3 13.013v3c0 .53 .211 1.039 .586 1.414c.375 .375 .884 .586 1.414 .586h6m0 0l-3 -3m3 3l-3 3' /> <path d='M16 16.502c0 .53 .211 1.039 .586 1.414c.375 .375 .884 .586 1.414 .586c.53 0 1.039 -.211 1.414 -.586c.375 -.375 .586 -.884 .586 -1.414c0 -.53 -.211 -1.039 -.586 -1.414c-.375 -.375 -.884 -.586 -1.414 -.586c-.53 0 -1.039 .211 -1.414 .586c-.375 .375 -.586 .884 -.586 1.414' /> <path d='M4 4.502c0 .53 .211 1.039 .586 1.414c.375 .375 .884 .586 1.414 .586c.53 0 1.039 -.211 1.414 -.586c.375 -.375 .586 -.884 .586 -1.414c0 -.53 -.211 -1.039 -.586 -1.414c-.375 -.375 -.884 -.586 -1.414 -.586c-.53 0 -1.039 .211 -1.414 .586c-.375 .375 -.586 .884 -.586 1.414' /> <path d='M21 21.499c0 -.53 -.211 -1.039 -.586 -1.414c-.375 -.375 -.884 -.586 -1.414 -.586h-2c-.53 0 -1.039 .211 -1.414 .586c-.375 .375 -.586 .884 -.586 1.414' /> <path d='M9 9.499c0 -.53 -.211 -1.039 -.586 -1.414c-.375 -.375 -.884 -.586 -1.414 -.586h-2c-.53 0 -1.039 .211 -1.414 .586c-.375 .375 -.586 .884 -.586 1.414' /> </svg>",
"successMessage":"Shift swap requested",
"errorMessage":"Failed to request shift swap. Error: {0}",
"visibleIf":{
"condition":{
"allOrSome":"all",
"selectors":\[
{
"field":"b3s\_\_Status\_\_c",
"operator":"notequals",
"value":"Requested Swap"
}
\]
}
},
"updateFields":\[
{
"field":"b3s\_\_Status\_\_c",
"value":"Requested Swap"
}
\]
}
\]
}
}
}
The quickActions accepts an array of objects, with the following properties:
label- The label displayed in the pop-up
icon - Icon displayed to the left of the label
successMessage - The toast displayed on action successful execution
errorMessage - The toast displayed on action error. Use {0} to actually display the server error (Validation Rule or other)
confirmationMessage - optional, if added, we will first show a confirmation dialog to the user before executing the action.
visibleIf - a condition to determine if the action is visible or not
updateFields - an array of fields to be updated with the target value (the value is static, you cannot use a matcher).
When you define a quickAction, the record card will render a hamburger button to the top-right. User then clicks on the quick action and they see either the confirmation message or see a loader across the record.
Add a native way to display and quickly manage shift invitations in the scheduler
Native Invitations View In Scheduler
Native Invitations In Scheduler Category View
We have now brought the invitations icon, natively into the package. You can remove the shift-invitations decorator from your implementations. You must however add “shiftCountFieldPath” field path to your shift schedulable. The field should be a roll up count of the shift invitations. The in-package field is b3s__Invitations__c. You must define the shiftInvitesCountFieldPath as such:
{
"schedulables":{
"shift":{
...
"shiftInvitesCountFieldPath": "b3s\_\_Invitations\_\_c",
"quickActions": \[
{
"label": "Accept",
"icon": "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor' class='icon icon-tabler icons-tabler-filled icon-tabler-thumb-up'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M13 3a3 3 0 0 1 2.995 2.824l.005 .176v4h2a3 3 0 0 1 2.98 2.65l.015 .174l.005 .176l-.02 .196l-1.006 5.032c-.381 1.626 -1.502 2.796 -2.81 2.78l-.164 -.008h-8a1 1 0 0 1 -.993 -.883l-.007 -.117l.001 -9.536a1 1 0 0 1 .5 -.865a2.998 2.998 0 0 0 1.492 -2.397l.007 -.202v-1a3 3 0 0 1 3 -3z' /> <path d='M5 10a1 1 0 0 1 .993 .883l.007 .117v9a1 1 0 0 1 -.883 .993l-.117 .007h-1a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-7a2 2 0 0 1 1.85 -1.995l.15 -.005h1z' /> </svg>",
"successMessage": "Shift accepted",
"errorMessage": "Failed to accept shift. Error: {0}",
"confirmationMessage": "Are you sure?",
"visibleIf": {
"condition": {
"allOrSome": "all",
"selectors": \[
{
"field": "b3s\_\_Status\_\_c",
"operator": "notequals",
"value": "Accepted"
}
\]
}
},
"updateFields": \[
{
"field": "b3s\_\_Status\_\_c",
"value": "Accepted"
}
\]
},
{
"label": "Reject",
"icon": "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor' class='icon icon-tabler icons-tabler-filled icon-tabler-thumb-down'> <path stroke='none' d='M0 0h24v24H0z' fill='none' /> <path d='M13 21.008a3 3 0 0 0 2.995 -2.823l.005 -.177v-4h2a3 3 0 0 0 2.98 -2.65l.015 -.173l.005 -.177l-.02 -.196l-1.006 -5.032c-.381 -1.625 -1.502 -2.796 -2.81 -2.78l-.164 .008h-8a1 1 0 0 0 -.993 .884l-.007 .116l.001 9.536a1 1 0 0 0 .5 .866a2.998 2.998 0 0 1 1.492 2.396l.007 .202v1a3 3 0 0 0 3 3z' /> <path d='M5 14.008a1 1 0 0 0 .993 -.883l.007 -.117v-9a1 1 0 0 0 -.883 -.993l-.117 -.007h-1a2 2 0 0 0 -1.995 1.852l-.005 .15v7a2 2 0 0 0 1.85 1.994l.15 .005h1z' /> </svg>",
"successMessage": "Shift rejected",
"errorMessage": "Failed to reject shift. Error: {0}",
"visibleIf": {
"condition": {
"allOrSome": "all",
"selectors": \[
{
"field": "b3s\_\_Status\_\_c",
"operator": "notequals",
"value": "Rejected"
}
\]
}
},
"updateFields": \[
{
"field": "b3s\_\_Status\_\_c",
"value": "Rejected"
}
\]
}
\]
}
}
}
Deprecated
https://login.salesforce.com/packaging/installPackage.apexp?p0=04tJ5000000LUPWIA4
https://login.salesforce.com/packaging/installPackage.apexp?p0=04tQH00000J2hh3
https://login.salesforce.com/packaging/installPackage.apexp?p0=04tQH00000J2nzN
- Terminals could fail to load contacts due to the size of the Biometric Key Field. This is now fixed, however, there are post-install instructions: change the biometricKeyFieldPath to biometricKeyFieldName in the Terminal custom metadata component config
https://login.salesforce.com/packaging/installPackage.apexp?p0=04tQH00000J2kVF
- Fix timezone handling within AI Shift Import tool. Note: the Salesforce's User Timezone must match the device timezone for import times to be correctly interpreted
https://login.salesforce.com/packaging/installPackage.apexp?p0=04tQH00000J2imn
Deprecated
Deprecated
Deprecated
Deprecated
This task is about changing the way Shifts and Requests are created/edited in the Scheduler. With this change, we are making the creation/editing mechanism more reliable by re-using an internal component. This however means that we have the following impact:
Improvements to the field-time-range-selector input. Notice how the field set on the left use "closed shape" all day definition versus the fields on the right that use "open shape" all day definition.
Other field-time-range-selector component Improvements:
- In , we introduced the "All Day" toggle to the field-time-range-selector component. You can now specify to hide this toggle if not needed, by setting the property "hideAllDayToggle" to true. Simply add "props": { "hideAllDayToggle": true } to your field definition for the respective app that implements a field-time-range-selector input component.
- Further to the above, we have also added a new property "halfOpenInterval" to the field-time-range-selector component. If this property is passed with a boolean true flag, we will set the end date time to 00:00 on the following day when the "All Day" toggle is enabled. By default, if halfOpenInterval is not passed or a boolean false flag is set to the attribute, we will set the end date of an All Day field-time-range-selector to 23:59 on the same day as the start date time field.
{
"schedulable":{
"shift":{
"recordFormFields": \[
{
"field": "b3s\_\_Scheduled\_Start\_Time\_\_c:b3s\_\_Scheduled\_End\_Time\_\_c",
"props": {
"hideDate": true
},
"labelOverride": "Scheduled Times",
"type": "field-time-range-selector",
"views": {
"shiftView": true,
"bulkEditView": false,
"blukCreateView": true
},
"required": true,
"disabled": {
"condition": {
"allOrSome": "all",
"selectors": \[
{
"field": "b3s\_\_Shift\_Demand\_\_c",
"operator": "isnull",
"value": false
}
\]
}
},
"enableRepeatPattern": true
},
{
"field": "b3s\_\_Actual\_Start\_Time\_\_c:b3s\_\_Actual\_End\_Time\_\_c",
"props": {
"hideDate": false,
"hideAllDayToggle": false,
"halfOpenInterval": true
},
"labelOverride": "Actual Times",
"type": "field-time-range-selector",
"views": {
"shiftView": true,
"bulkEditView": false,
"blukCreateView": false
},
"required": false,
"disabled": false
}
\]
}
}
}
- This version enhances the UI and UX of the field-time-range-selector component.
Add support for displaying placements
This feature allows us to display running placements against candidate resources. To do so, you will need to define a new schedulable "placement" as per the example below:
{
"schedulable": {
"placement":{
"objectType":"b3o\_\_Placement\_\_c",
"contactFieldPath":"b3o\_\_Candidate\_\_c",
"contactRecordReference":"b3o\_\_Candidate\_\_r",
"startFieldPath":"b3s\_\_Start\_\_c",
"endFieldPath":"b3s\_\_End\_\_c",
"lookBackExtendDays":1,
"lookForwardExtendDays":1,
"selectionClause":\[
"b3s\_\_Start\_\_c != null and b3s\_\_End\_\_c != null"
\],
"isFieldPathDateType":true,
"dateFilterMode":"overlap",
"additionalFields": \[
"b3o\_\_Job\_\_r.Name"
\],
"title":\[
{
"label":"Job",
"fieldPath":"b3o\_\_Job\_\_r.Name",
"formatter":"string",
"hideIfNull":true
}
\],
"eventTooltipFields":\[
{
"label":"Worker",
"fieldPath":"b3o\_\_Candidate\_\_r.Name",
"hideIfNull":false
},
{
"label":"Break Times",
"fieldPath":"b3s\_\_Start\_\_c:b3s\_\_End\_\_c",
"formatter":"startEnd",
"hideIfNull":false
}
\]
}
}
}
Things to notice in the example above:
Control whether user can add shifts in Timesheet Submission
Added the global ability to control whether the Timesheet Submitter can:
{
"timezonePreference": "local",
"firstDay":0,
"is24Hour": true,
"canAddShifts": true,
"canChangeView": true,
"canSubmitShiftsForApproval": true,
"canSubmitExpensesForApproval": true,
"canAddExpenses": true,
"schedulables": {
"shift": {
...
}
}
}
Multi-select input exhibits UI/UX issues
This is a fix for how the multi-select input works, system-wide. Previously, the multi-select could prevent the user from selecting multiple options in one go.
Terminal: Canvas error & user guidance not cleared
Terminal: Added a new select input with onscreen keyboard. This is in an attempt to speed up user search and selection. We have also split the login component in 2 steps: step 1 = search and select, step 2 = authenticate.
Terminal: We have fixed mobile friendliness UX
Terminal: When user is logging in, we say "Hello, user_name" (dependent on the label of the option). When user clocks in/out, we display a toast message. You can add the following strings to the terminal app's configuration to configure the clock in/clock out toast message
{
"timezonePreference": "user",
"shiftStartedMessage": "You started your shift",
"shiftEndedMessage": "You ended your shift",
...
}
Terminal: Add configurable user instructions. Define "userInstructions" string attribute in the terminal app's configuration.
Below, you can find a full app definition for the terminal application. Please note the following new properties:
{
"timezonePreference": "user",
"backgroundSyncFrequency": 35,
"managerPages": \[
{"label": "Home", "value": "Index"}
\],
"statQueries": \["countOnSite", "scheduledToday", "completedToday"\],
"clockInOutButtonLabel": "Clock In / Out!",
"identifiedClearTimeoutMs": 1200,
"clockAppConfig":{
"hideThemeSwitch":true,
"hideCurrentUser":false,
"hideMenus":true
},
"autoScanInBackground": true,
"notMeButtonLabel": "Not Me!",
"shiftStartedMessage": "You started your shift",
"shiftEndedMessage": "You ended your shift",
"userInstructions": "To log in, tap on the circular button in the middle of the screen. You will see a pop-up. Search for your name in that pop-up. You will then be prompted to enter your candidate PIN or use the device's camera to scan your face. Once authenticated, you can tap on the 'Start' button to clock in. To clock out, follow the same steps.",
"schedulables": {
"countOnSite": {
"objectType": "b3s\_\_Shift\_\_c",
"selectionClause": \[
"b3s\_\_Site\_\_c =:contextId AND b3s\_\_Contact\_\_c != null AND DAY\_ONLY(b3s\_\_Actual\_Start\_Time\_\_c) >= YESTERDAY and b3s\_\_Actual\_End\_Time\_\_c = null"
\],
"header": "On Site",
"footer": "people"
},
"scheduledToday": {
"objectType": "b3s\_\_Shift\_\_c",
"selectionClause": \[
"b3s\_\_Site\_\_c =:contextId AND b3s\_\_Contact\_\_c != null AND b3s\_\_Actual\_Start\_Time\_\_c = null and DAY\_ONLY(b3s\_\_Scheduled\_Start\_Time\_\_c) = TODAY"
\],
"header": "Scheduled Shifts",
"footer": "today"
},
"completedToday": {
"objectType": "b3s\_\_Shift\_\_c",
"selectionClause": \[
"b3s\_\_Site\_\_c =:contextId AND b3s\_\_Contact\_\_c != null AND b3s\_\_Actual\_Start\_Time\_\_c != null and b3s\_\_Actual\_Start\_Time\_\_c != null"
\],
"header": "Completed Shifts",
"footer": "today"
},
"site": {
"objectType": "b3o\_\_Site\_\_c",
"selectionClause": \[
"b3o\_\_Coordinates\_\_Latitude\_\_s != null"
\],
"nameFieldPath": "b3o\_\_Public\_Name\_\_c",
"coordinatesPath": "b3o\_\_Coordinates\_\_c"
},
"manager": {
"objectType": "Contact",
"selectionClause": \[
"b3s\_\_Terminal\_Manager\_Pin\_\_c != null"
\],
"nameFieldPath": "Name",
"emailFieldPath": "Email",
"biometricKeyFieldPath": "b3s\_\_Biometric\_Key\_\_c",
"pinFieldPath": "b3s\_\_Terminal\_Manager\_Pin\_\_c"
},
"contact": {
"objectType": "Contact",
"selectionClause": \[
"b3s\_\_Worker\_Pin\_\_c != null"
\],
"nameFieldPath": "Name",
"emailFieldPath": "Email",
"biometricKeyFieldPath": "b3s\_\_Biometric\_Key\_\_c",
"pinFieldPath": "b3s\_\_Worker\_Pin\_\_c"
},
"unregisteredContacts": {
"objectType": "Contact",
"selectionClause": \[
"b3s\_\_Worker\_Pin\_\_c = null"
\],
"nameFieldPath": "Name",
"emailFieldPath": "Email",
"biometricKeyFieldPath": "b3s\_\_Biometric\_Key\_\_c",
"pinFieldPath": "b3s\_\_Worker\_Pin\_\_c"
}
}
}
Timezone Handling bug. The Scheduler application incorrectly handled timezones in local vs user mode in the manageRecord record editing component. This could cause the shift/request/expense record editing popup to populate with a day in the past/future label and/or datetime fields could be offset. Additionally, we were not handling double click on scheduler event correctly, timezone wise.
Add support for conditional filters & filter breadcrumbs in Scheduler
Conditional Filters
This version adds support for conditional filters and filter breadcrumbs. No additional configuration is required. Once you apply a filter, the filter will be assigned a filter number. A new input text field will be visible at the top of the filters side panel. As a user, you can then define a filter conditionality statement using AND, OR and parenthesis.
Select multiple shifts & auto-match in Scheduler
This feature allows a user to select multiple shifts in the scheduler, select minimum matching % and let the system auto-assign the shifts to best fit.
Shifts bulk matching in Scheduler
This version adds support for search, match and invite across multiple shifts. In the scheduler, we have added two new context menu options:
- "Match per shift" - this allows you to initiate the matching engine, contextualized with all shifts selected. It effectively allows you to run assign & invite, shift by shift.
- "Match group to one candidate" - this allows you to search and match to a candidate all of the selected shifts. This means that you can select a week, month or year worth of shifts and perform a search with average matching % across all shifts
Add support for repeating patterns in record create across all apps
Repeating availability
This task adds the following two capabilities:
{
"schedulables": {
"request": {
"recordFormFields": \[
{
"field": "b3s\_\_Start\_\_c:b3s\_\_End\_\_c",
"type": "field-time-range-selector",
"labelOverride": "Start/End Time",
"required": true,
"disabled": false,
"valueStart": ":contextStart",
"valueEnd": ":contextEnd",
"props": {
"hideDate": false
},
"enableRepeatPattern": true
}
\]
}
}
}
Notes:
- Your app configuration must implement a field-time-range-selector field for this to work
- You can only have 1 field with enableRepeatPattern set to true within a "recordFormFields" scope. Setting this property to more than one field-time-range-selector will not work properly.
- Although we designed this solution specifically for the Clock app -> Availability management, you can also enable repeating patterns for shifts, expenses and availability in the Clock app as well as in all record creating actions within the Timesheet Submission, Timesheet Approval and Client Shift Manager apps. Simply add enableRepeatPattern to a field-time-range-selector field inside "recordFormFields" or "homePageEditShiftFields".
The nameFieldPath property in the Terminal app's configuration was not respected and we defaulted to using the "Name" field instead. This is now corrected
The "optionName" property in the Terminal app's configuration is now deprecated. It is superseded by the nameFieldPath property. If you have not defined a nameFieldPath property, we will default to using the "Name" field in the candidate selector, the unregistered contacts selector, the managers selector and the site selector
https://login.salesforce.com/packaging/installPackage.apexp?p0=04tQH00000J20iX
Fixed long labels overflowing in shared field components (fileUpload, dateTime, timeRangeSelector, signature...). Long label text now wraps within its container.
Fix low-contrast select options in Dark Mode by adding text-base-content to option elements in the inline dropdown and popout/modal select views, and to the modal box baseline.
Link: https://login.salesforce.com/packaging/installPackage.apexp?p0=04tQH00000J1z9l
Added a new AI Assisted Shift Import Tool.
Recalculate rules on shift match - When running the shift matching engine, we used to re-use the scheduler loaded data which could mean that the data became stale. This change means that we will refresh the data used for matching before each match takes place. This means that matching will be a tad slower, but more reliable.
Visual duplication of shifts. This bug could cause shifts to get duplicated in the scheduler (but not in the database), especially when the user moved a shift quickly between days/resources.
Unregistered workers support. The Terminal app was using the "contact" schedulable for both candidates that are enabled to log in and candidates that are not registered. We have added support for "unregisteredContacts" schedulable, allowing admins to define a set of contacts that are not yet registered, that a manager can enroll and register through the terminal app. Here's a sample definition file:
{
...
"schedulables": {
...
"contact": {
"objectType": "Contact",
"selectionClause": \[
"b3s\_\_Worker\_Pin\_\_c != null && b3s\_\_Biometric\_Key\_\_c != null"
\],
"nameFieldPath": "Name",
"emailFieldPath": "Email",
"biometricKeyFieldPath": "b3s\_\_Biometric\_Key\_\_c",
"pinFieldPath": "b3s\_\_Worker\_Pin\_\_c",
"optionName": "Name"
},
"unregisteredContacts": {
"objectType": "Contact",
"selectionClause": \[
"b3s\_\_Biometric\_Key\_\_c = null"
\],
"nameFieldPath": "Name",
"emailFieldPath": "Email",
"biometricKeyFieldPath": "b3s\_\_Biometric\_Key\_\_c",
"pinFieldPath": "b3s\_\_Worker\_Pin\_\_c",
"optionName": "Name"
}
}
}
Terminal PIN entry improvements. The Terminal PIN field now behaves consistently.
Dark theme - select field issue fix where options were not visible. If the user's Operating System or Browser was set to "Dark Theme", options inside a select field could be rendered a very bright color making it difficult to select the correct picklist option.
Add support for nested queries. We can now add nested joined queries inside loaders, app definitions and everywhere else where data query is required.
"b3s__Contact__c != null AND b3s__Site__c IN (SELECT b3s__Site__c FROM b3s__Working_Pattern__c WHERE b3s__Contact__c = :contactUserId)"
Add badges to mobile app. With the change introduced in v8 of the candidate mobile app, Shifts, Expenses and Availability pages contain a week calendar selector, but we didn't have a badge against the day(s) that contained a record. This change introduces badges against each day where a shift, expense or availability record is recorded.
Better error handling for pop-up forms. In pop-up forms like in the Candidate Clock App -> Accept/Reject invitation, if the invitation acceptance failed, the error was displayed as a toast message. This was introducing friction as the error message could be displayed behind the pop-up form. This change applies to multiple locations where the pop-up record form is displayed (e.g. record edit, record create and across all apps)
Site change affected selected times if the site had a timezone. A much welcomed change, allowing a user to change a Site with a timezone, without auto-updating the shift times. When a set of times (scheduled, actual, payable) are updated and a timezone provider is defined such as the Site -> Timezone, we previously would offset the times if the new timezone provider's timezone was changed/different than the current timezone.
Add month name to monthly view in the shift Scheduler. We weren't displaying the current month in the navigation when in Monthly view type.
Address autocomplete component for Site object. Added a new LWC component that allows a user to search and apply an address for a site, using Google's database. To enable this feature, you need to add the "Address Autocomplete" LWC component through the app builder on a b3o__Site__c object and also set the target fields (street, lat, long and other options, refer to the builder).
Note: To benefit from geocoding and to use this, you need to set a Google Places API key against Scheduler Custom Settings -> Google Maps API Key (b3s__Google_Maps_API_Key__c).
Fix mobile responsiveness on clock app. If a field had a long label, pop-up forms could adopt a broken, non mobile friendly interface.
Missing nameFieldPath in terminal app meant no custom field name for drop down. Now, you can use a field different than the Name when rendering the options of records to be displayed as Managers or Contacts to Register in the Terminal app. Simply set/change the nameFieldPath in the Terminal Component configuration to any other field than Name (the default).
Avoid running compliance on Shift Demands. Previously, we could run compliance on shift demands which is erroneous.
Missing background property in clock app (availability and shifts). Availability and Shift (as well as Expense) records in the mobile app lost the ability to set a background, border top/left/right property since the change between v8 and v9.