# Integration with Kronos

### Overview <a href="#overview" id="overview"></a>

This guide offers a comprehensive overview of MangoApps software's integration capabilities with the UKG (Kronos) schedule management system, focusing on enhancing user experience and workflow efficiency. Tailored for MangoApps customers seeking to integrate the two platforms, this guide outlines the end-to-end process, from initial setup to routine schedule updates. The integration allows for the seamless display of real-time schedule information within MangoApps, specifically through its Shifts feature, providing users with the tools to optimize their workflow and make the most of this collaborative functionality.

***

### Configuration <a href="#configuration" id="configuration"></a>

From within the Admin Portal, navigate to **Modules** -> **Schedules** -> **Source**

<figure><img src="https://guides.mangoapps.com/~gitbook/image?url=https%3A%2F%2F1733114811-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lclpq021Ai9jH1_X4gO%252Fuploads%252FuHbRgm3YpW6U9nHc6Nvm%252Ffewefw.png%3Falt%3Dmedia%26token%3D7c97b51b-26d3-4781-a90d-2769273eb540&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=c6f2d8f5&#x26;sv=2" alt=""><figcaption></figcaption></figure>

**Source of Shifts Data:** Select "Kronos" as the data source from the dropdown menu.

**Source URL**: Enter the SFTP location of the csv file. MangoApps will use this SFTP endpoint to connect and fetch the shifts CSV file. If need be, you can download a sample CSV to verify all headings match.

**Timezone in CSV File:** If **UTC** is selected, MangoApps will convert the time values sent in UTC to users' store time zone prior to displaying it. If **Store Timezone** is selected. MangoApps will **not** convert the time and will display the time as is. It is recommended to use the Store **Timezone** option when the API is already sending the time values in the user's store time zone.

***

### **Authentication** <a href="#authentication" id="authentication"></a>

<figure><img src="https://guides.mangoapps.com/~gitbook/image?url=https%3A%2F%2F1733114811-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lclpq021Ai9jH1_X4gO%252Fuploads%252F5GZcNZ7tENdXsotyiGsV%252F21-02-2024-11-38-32.png%3Falt%3Dmedia%26token%3Da29554bb-db1a-419e-83d6-16e68b93ef9b&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=f7a9140d&#x26;sv=2" alt=""><figcaption></figcaption></figure>

In the **Login ID** field, enter the login ID for the SFTP server for authentication when MangoApps tries to sync data from the .csv file.

In the **Password** field, enter the password for the SFTP server for authentication when MangoApps tries to sync data from the .csv file.

In the **AES-256 Decryption Key** field, enter the decryption key for the .csv file if you have encrypted the file with AES-256 Encryption for increased security.

***

### **Sync** <a href="#sync" id="sync"></a>

After successfully testing the connection, you can proceed to configure the synchronization schedule for communication from Kronos to MangoApps.

<figure><img src="https://guides.mangoapps.com/~gitbook/image?url=https%3A%2F%2F1733114811-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lclpq021Ai9jH1_X4gO%252Fuploads%252FqLWRyuLrsYTZkn48G2Uf%252Fefwe.png%3Falt%3Dmedia%26token%3D6438da04-5eeb-4e99-9b89-f49261aa76f6&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=646133c9&#x26;sv=2" alt=""><figcaption></figcaption></figure>

**Sync Schedule**: Choose from intervals of 2, 4, 6, 8, 12, or 24 hours for the synchronization schedule to recur.

**Sync Notification**: Enable this setting to receive notifications once the synchronization process is completed.

Email notifications must be turned **ON** within the individual domain admins notification preferences to receive these emails.

**Save/Save Settings & Force Sync Now**: If you need to synchronize records before the scheduled time, use this option to save settings and initiate an immediate synchronization.

***

### Import of CSV File for Kronos <a href="#import-of-csv-file-for-kronos" id="import-of-csv-file-for-kronos"></a>

A crucial aspect of configuring Kronos involves populating a CSV file with specific information to ensure accurate representation of employee schedules. In this section, we will take a look into the key columns and data formats required for seamless data integration.

<figure><img src="https://guides.mangoapps.com/~gitbook/image?url=https%3A%2F%2F1733114811-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lclpq021Ai9jH1_X4gO%252Fuploads%252FXUPqx5FvImvMA7A2wg8L%252Fgwreg.png%3Falt%3Dmedia%26token%3D4d21e080-da27-479d-ad9f-3fcb68b41649&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=afc7ad9b&#x26;sv=2" alt=""><figcaption></figcaption></figure>

**1. PERSONNUM**

In this column, input the Employee ID for each user. The Employee ID must be a 6-digit number, ensuring a unique identifier for each employee.

**2. SHIFTASSIGNID**

This column requires a unique Shift Assigned ID for each shift entry. The same Shift Assigned ID should be consistent across all entries for a particular employee's shift.

**Example:** For a shift with Employee ID 300171, the ShiftAssignID remains the same across regular shifts and breaks. However, for another employee like 300172, the ShiftAssignID differs, maintaining consistency within their respective shifts.

<figure><img src="https://guides.mangoapps.com/~gitbook/image?url=https%3A%2F%2F1733114811-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-Lclpq021Ai9jH1_X4gO%252Fuploads%252Ff0i5pu7EqmizK6N1Zknj%252Fertgw.png%3Falt%3Dmedia%26token%3D8335c831-513b-47c7-90fe-ffc1e89f6786&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=a2780c0b&#x26;sv=2" alt=""><figcaption></figcaption></figure>

**3. SHIFTSEGEMENTID**

The Shift Segment ID represents the regular and break time segments within a complete shift. This ID **must be unique** for each entry of the shift. This is crucial for accurately defining the segments of a shift, including regular work hours and breaks.

**4. ENTEREDONDTM**

This column captures the date and time when the data is entered into the CSV file. The required data format is DD-MM-YYYY HH:MM:SS.

**5. DELETEDSW**

Use this column to indicate whether the record is new (0) or if it's intended for deletion (1).

**6. SHIFTSTARTDATE, SHIFTENDDATE**

These columns require the shift's start and end dates in the format DD-MMM-YY.

**7. SHIFTSTARTTIME, SHIFTENDTIME**

Enter the shift start and end times in the format HH:MM:SS.

**8. SHIFTSEGMENTTYPE**

Indicate whether the segment is "Regular" or "Break" in this column.

**9. HOME\_STORE**

Enter the Location ID for the employee the shift is being assigned. This ID should match the extension ID attribute value of locations created in the Admin Portal's Locations section.

***

### Best Practices for CSV <a href="#best-practices-for-csv" id="best-practices-for-csv"></a>

* Double-check data integrity to prevent errors in the Kronos system.
* Ensure uniqueness in Shift Assigned IDs and Shift Segment IDs for accurate mapping.
* Adhere strictly to the specified date and time formats to maintain data consistency.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.mangoapps.com/integrations-guide/shifts-and-schedules/integration-with-kronos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
