Skip to main content

Experience Site Time Logging

Time logging can also be exposed within an Experience Cloud site to allow workers to log time against their placements. This is achieved through a Lightning Web Component that can be embedded onto a page within the site.

note

Only Aura and LWR sites are supported.

Community time logger

Time logging by an Experience Cloud user is achieved through the use of the Community Time Logger component. This component can be added to any page within the site, however, it requires the following design time inputs:

Input NameTypeRequiredDescription
Record IdIdYesId of the placement, or a timesheeet associated to the placement, to log time against
tip

Assign the Record Id input the dynamic value {!recordId} to get the Id from a record page.

This component offers a similar UI as the internal time logging component, allowing a user to log time against specific rate cards, however, there is also an option for a user to submit a timesheet for approval.

When a timesheet is submitted for approval, it presents a modal to the user to confirm the submission. This modal shows the total number of hours that will be submitted, and the total pay from those hours, based on the rate cards. The user can also add a comment to the timesheet, which will be added to the timesheet record in the field seven20__Candidate_Comments__c.

Submitting a timelog also sets the seven20__Latest_Submitted_Date__c to the current date and time, and seven20__Status__c to Submitted. It will also prevent the user from logging any further time against the timesheet.

Permissions

The Experience Cloud user needs the following permissions to be able to log time:

SObjectFieldPermission
seven20__Placement__cseven20__Timesheet_Period__cRead
seven20__Placement__cseven20__Timesheet_Start_Day__cRead
seven20__Rate_Card__cNameRead
seven20__Rate_Card__cCurrencyIsoCodeRead
seven20__Rate_Card__cseven20__Pay_Rate__cRead
seven20__Timesheet__cseven20__Placement__cRead
seven20__Timesheet__cseven20__Start_Date__cRead
seven20__Timesheet__cseven20__End_Date__cRead
seven20__Timesheet__cseven20__Status__cRead / Write
seven20__Timesheet__cseven20__Latest_Submitted_Date__cRead / Write
seven20__Timesheet__cseven20__Candidate_Comments__cRead / Write
seven20__Time_Log__cseven20__Time_Log_Date__cRead / Write
seven20__Time_Log__cseven20__Logged_Quantity__cRead / Write
seven20__Time_Log__cseven20__Rate_Card__cRead / Write
seven20__Time_Log__cseven20__Placement__cRead / Write

In addition to this, they need access to the following Apex classes:

  • CommunityTimeLoggingManagerController
  • TimelogEntryController
tip

Don't forget to assign any additional permissions for fields which may be required for the Experience Cloud user time logging journey.