to get a personalized navigation.
to get a personalized navigation.
In this article we'll review an error message that can be returned when invoking POST > Timecard operation via Timecard Endpoint as well as how to resolve this issue.
Timecard endpoint is corresponding with "Employee time card" module in the Visma.Net ERP. (Document View "ScreenID=EP305000" / Module View ScreenID=EP406000 )
Employee field indicates the employee's reference ID that who we want to create a time card for. The correspondent field in the API POST/PUT DTO is
"employee": {
"value": "string"
},
Based on your Financials ERP Company setup , The ID of the currently signed-in employee is selected by default on the identifier of the employee whose time cards you want to manage.
If your Visma.net User which is used while generating an API Token isn't member of a group that is not hierarchically higher order in the company tree than the desired Employee ID you want to create a time card, TimeCard POST operation returns the following error:
"message": "You cannot create timecards for the selected user. Please review the company tree."
The same scenario is valid for ERP UI as one cannot select different employee unless above-mentioned settings are configured.
Since this is related to your Financials ERP Company configuration, you need to adjust organization/company tree setup. In order to be able to configure this, please follow the instructions below.
1) Workgroup assignment for the Employee
2) Continuing with,
3) Then select newly created group e.g (A Group) and click (=>) right arrow, this will give transaction access to your current user on the users these grouped below in the hierarchy.
4) Now this employee can be selected / used with both UI Employee Time Card and API.
Copyright © 2022 Visma.com. All rights reserved.