AndiBellstedt / PSPersonio

PowerShell module for interacting with API of HR application Personio
MIT License
1 stars 0 forks source link

Get-PERSEmployee Returns Update-TypeData Error #9

Open nikoxley opened 11 months ago

nikoxley commented 11 months ago

When calling the Get-PERSEmployee function for an individual account, the following error is displayed:

Update-TypeData: The Value and SecondValue parameters should not both be null for a member of type "ScriptProperty". Specify a non-null value for one of the two parameters.

It should be noted that both the Office and Supervisor attribute values are also not returned even though these have been added to the Personio API key. Perhaps because these are dynamic?

Module Versions

PSPersonio 0.1.4.1 PSFramework 1.9.310

AndiBellstedt commented 11 months ago

Hello, thanks for submitting this issue. Due to the fact, that this logic depends on the application/service configuration and I am no more working with Personio service, it could get complicated for me to troubleshooting. The "logic/dynamic" trys to add "individual defined" attributes "as returned from the api" but as a structured object. My intention was to build a solution where I can rely on qualified objects with default properties AND have the possible to add attributes dynamically to the output.

If it is okay for you, I am willing to troubleshooting but we should get in contact on more personal base. May we can connect via LinkedIn or X (Twitter) via personal chat? (Link is in my profile)

The debug output of Get-PERSEmployee will probably help. Please be adviced, that this may contain PRIVATE INFORMATION, so I do not recomment to share publicly here in this issue.