Skip to main content

Manage payroll data and documents

Set up the territory and period for payroll data, then control Payroll Run stages and documents in Salesforce.

Who can use this?

HR Admins and payroll teams in the flair HR app in Salesforce. Salesforce Admin access is required to change State picklist values or use Developer Console.

Create a Payroll Territory

  1. In the flair HR app, open HR AdminPayroll Territories.
  2. Click New.
  3. Enter the territory name, country, and currency.
  4. Click Save.
  5. Open the territory and add its employees. Only assigned employees appear in Payroll Runs for that territory.

New Payroll Territory form in Salesforce

note

If an employee is missing from a Payroll Run, confirm that the employee belongs to the selected Payroll Territory.

Create a Payroll Run

  1. In the flair HR app, open Payroll Runs.
  2. Click New.
  3. Enter Name, Start Date, and End Date.
  4. Select Payroll Territory.
  5. Click Save.
  6. Click Add Employees, then select employees from the territory.

New Payroll Run form in Salesforce

Payroll Runs use these default stages:

StageWhat it means
DraftYou can add or remove employees and change data.
Pending ApprovalThe run is ready for review and approval.
SubmittedThe run is approved, submitted, and locked for processing.
CompletedPayroll processing is finished.

Add a Payroll Run stage

  1. In Salesforce Setup, open Object Manager.
  2. Search for Payroll Run, then open Payroll Run.
  3. Open Fields & RelationshipsState.
  4. Under Values, click New.
  5. Enter the stage name, then click Save.
  6. Optional: Click Reorder, then use Up, Down, Top, or Bottom to position the stage.
  7. To lock data in this stage, click Edit next to the value.
  8. Add _locked to the value's API name, then click Save.

The Completed stage is locked by default. For API deductions, use a locked stage named Submitted.

Locked State value for a Payroll Run

Reverse a completed Payroll Run

Clearing flair__Completed_At2__c returns a completed run to Pending Approval.

Use Salesforce Inspector

  1. Install the Salesforce Inspector browser extension.
  2. Open the Payroll Run.
  3. From Salesforce Inspector, click Show All Data.
  4. Find Completed At (flair__Completed_At2__c).
  5. Clear the field value, then click Save.
  6. Return to the Payroll Run. The run can move back to Pending Approval.

Completed At value cleared with Salesforce Inspector

Use Developer Console

  1. From Salesforce settings, open Developer Console.
  2. Open Query Editor.
  3. Enter SELECT Id, Name, flair__Completed_At2__c FROM flair__Payroll_Run__c.
  4. Click Execute.
  5. Find the Payroll Run and clear its Completed At value.
  6. Save the change, then close Developer Console.
  7. Return to the Payroll Run. The run can move back to Pending Approval.

Payroll Run returned to Pending Approval

Generate payroll documents

  1. In Payroll Runs, open the run.
  2. Open Documents on the right.
  3. Click Generate.
  4. Select the required document type, including payslips when configured.
  5. Complete the generation action. The documents appear on the Payroll Run.

Configure documents for data export

  1. In the flair HR app, open HR AdminPayroll Territories.
  2. Open the territory.
  3. Open Data Export.
  4. Add or remove the documents included in Payroll Runs for this territory.
  5. Save the configuration.

In a Payroll Run, select employees to create payment summaries or payslips. You can also upload other documents and include them in the generated files.