PTO balances data entity and structure
The PTO balances can be imported into the Microsoft Dynamics 365 for Finance and Operations using the ‘PTO balances’ data entity created to facilitate this process.
Before you create an import project under the Data management and run the import process, download the file\data from external HR or payroll system. The file should have following fields:
|Email ID||Email ID of the resources for which PTO balances to be imported.|
|Personnel number||Personnel number of the resources for which PTO balances are to be imported.|
|PTO balances||Balances (number of hours) against each PTO type for resources for whom data is to be imported.|
|PTO type||Type of PTO i.e. sick leave, vacation, etc. for resources for whom data is to be imported.|
|Resource name||Name of resource in column for whom data to be imported.|
One of these fields, Email ID, Personnel number or Resource name should be specified in the import file. The logic used to retrieve the resource information is as follows: Get the resource information based on Personnel number, If Personnel information doesn’t exist then it gets it from Email ID, if email ID also doesn’t exist, then it gets the resource information based on the resource name. The PTO balances field takes the values in terms of hours and not days, so it converts your values into hours as necessary before importing.
Sample import data could be as below:
|firstname.lastname@example.org||000045||8||Compulsory Off||April Stewart|
|email@example.com||000046||24||Work From Home||April Stewart|
|firstname.lastname@example.org||000047||20||Earned Leave||April Stewart|
|email@example.com||000048||15||Sick Leave||April Stewart|
Process to Import PTO balances
The process to import the PTO balances is as follows.
- Navigate to Workspaces > Data management > Import.
- Enter group name and description in the import tab\section.
- Click Add file on the selected entities tab\section.
- Enter ‘PTO Balances’ entity name.
- Click upload and add to select and upload the source data file. Source data will be the external HR or payroll file.
- Once the information is loaded, close out the form.
- Now go back to the main form and click Import.
- Once the import process is executed, for success or failure you should see the Execution summary.
- Also you can view the staging data by navigating to the relevant form.