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.
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 Name | Type | Required | Description |
|---|---|---|---|
| Record Id | Id | Yes | Id of the placement, or a timesheeet associated to the placement, to log time against |
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:
| SObject | Field | Permission |
|---|---|---|
| seven20__Placement__c | seven20__Timesheet_Period__c | Read |
| seven20__Placement__c | seven20__Timesheet_Start_Day__c | Read |
| seven20__Rate_Card__c | Name | Read |
| seven20__Rate_Card__c | CurrencyIsoCode | Read |
| seven20__Rate_Card__c | seven20__Pay_Rate__c | Read |
| seven20__Timesheet__c | seven20__Placement__c | Read |
| seven20__Timesheet__c | seven20__Start_Date__c | Read |
| seven20__Timesheet__c | seven20__End_Date__c | Read |
| seven20__Timesheet__c | seven20__Status__c | Read / Write |
| seven20__Timesheet__c | seven20__Latest_Submitted_Date__c | Read / Write |
| seven20__Timesheet__c | seven20__Candidate_Comments__c | Read / Write |
| seven20__Time_Log__c | seven20__Time_Log_Date__c | Read / Write |
| seven20__Time_Log__c | seven20__Logged_Quantity__c | Read / Write |
| seven20__Time_Log__c | seven20__Rate_Card__c | Read / Write |
| seven20__Time_Log__c | seven20__Placement__c | Read / Write |
In addition to this, they need access to the following Apex classes:
- CommunityTimeLoggingManagerController
- TimelogEntryController
Don't forget to assign any additional permissions for fields which may be required for the Experience Cloud user time logging journey.