While querying the Employee data in Successfactors system using CompoundEmployee, it is observed that for some employees the 'CompoundEmployee' API does not return the field '<logon_user_name>' in response.
The employees that have this issue have 'concurrent employments' defined in the Successfactors instance and for such records, this is the designed behavior of Compound Employee API.
So if there are concurrent employments, it is not feasible for the API to identify the logon details and hence it does not provide the logon details but does revert a log_item like below-
<message_text>Field "logon_user_name" can't be returned: The employee has multiple logon users, this is not supported by the API. </message_text>
So this API response itself shows that it is not able to retreive the data which is as per the standard design.
KBA , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , Problem