The "Start shift and End shift" feature is comparable to punching in for work. It is for organizations who need to capture the shift periods worked—the actual shift times like start, stop and the breaks in between. Having visibility of these shift times allows companies to compensate their workforce appropriately.
Tapping the "Start shift" button begins recording the "actual duration" of the shift. There is a brief confirmation that the shift is started before the "Start shift" button is replaced with two other buttons "Start break" and "End shift."
Tapping the "Start break" button pauses the recording of the actual shift duration. There is a brief pop-up to confirm that the break has started before it changes the button, highlighting it in dark gray with the text "End break." A counter on the button begins recording the time of the break.
Tapping the "End break" button resumes recording the actual shift duration (i.e., the break is ended). It changes the button style and updates the text back to "Start break."
The break time counter will continuously record time until the "End Break" button is tapped or the shift itself is ended. The mobile app can be closed and reopened, and the counter will still be running until it is stopped.
Breaks can be started and stopped a number of times (unlimited). Recording breaks in a shift is a manual operation—care should be taken to end a break else the timer will continue to run.
The "End shift" button becomes visible as soon as the resource has started the shift. Tapping the "End shift" button stops recording the actual shift duration.
A resource may "end shift" while on break, the behavior is the same as the above "End shift."
Where multiple shifts are allocated to a resource on the same day, they are listed one after the other in the agenda view. When one shift is ended, the "Start Shift" button moves to reflect the next available shift.
The shifts calendar view shows all the shifts assigned to the resource. The shift card shows a status label for the following:
A shift "In progress."
A "Completed" shift.
New shifts have no status label.
Tapping on a shift card in the shifts calendar opens the shift's details. These details contain a record of the actual start and end times plus all the breaks recorded in between.
The following procedure assumes you have the correct level of permissions to access and configure your Salesforce platform—if not, seek guidance from your Salesforce administrator.
Salesforce (by default) does not show the two fields that record the actual shift times worked. They can be added to the "Resource Shift" record by performing the following:
In Salesforce Lightning, open Setup.
Locate the "Object Manager" and navigate to the "Resource Shift" object.
In the "Page Layouts" section, open the "Resource Shift Layout."
Add (drag-and-drop) the fields "Actual Start" and "Actual End" into the information section.
Save the new layout.
Using Salesforce Lightning, click on the App Launcher.
Select the required shift (which by-the-way contains the defined shift duration in minutes).
Click on the "Related" tab.
Under section "Resource Shifts," click on the "Resource Shift Name."
The Resource Shift contains details of the "Actual Start" and "Actual End" times of the shift. (If you look back at the mobile app's recorded shift details, these actual start and end times are the same.)
Click on the "Related" tab to see a list of any shift breaks.
Select a break from the section "Resource Shift Break Name."
The"Resource Shift Break Name" contains the start and end times for the break. (If you look back at the mobile app's recorded shift details, these break start and end times are the same.)